The story goes that it came from a contest to make a dress for Queen Charlotte of England. It's a vivid, saturated blue. It's popular for party dresses, sports uniforms and graduation decor.
The hex code for royal blue is #4169E1. In RGB it is rgb(65, 105, 225), in HSL hsl(225, 73%, 57%) and in CMYK 71, 53, 0, 12.
Pick a color to pair it with and see how it looks on clothes, interiors and design.
Royal blue (#4169E1) is a cool, mid-tone, moderately saturated color. It belongs to the blues family. It mixes 65 red, 105 green and 225 blue (out of 255). It is mostly used in fashion, events, sports.

From lightest to darkest. Tap a shade to copy its code.
See all its shades: Color shades generator

Combinations based on the color wheel. More in the color harmony tool.
Copy the codes or open a palette in the editor to tweak it.
Based on WCAG 2.1 guidelines. Test other pairs in the contrast checker.
:root {
--royal-blue: #4169E1;
--royal-blue-rgb: 65, 105, 225;
}
.bg { background-color: var(--royal-blue); }
.text { color: var(--royal-blue); }
The hex code for royal blue is #4169E1. In RGB it is rgb(65, 105, 225), in HSL hsl(225, 73%, 57%) and in CMYK 71, 53, 0, 12.
Its complement on the color wheel is #E1B941, close to metallic gold. Used in small doses, it works as an accent and adds strong contrast.
Yes. The contrast with white is 4.8:1, enough for body text (WCAG AA).
It pairs well with white, black, gold, gray, yellow. Avoid pairing it with equally intense purples or greens, because they fight for attention. Next to a navy that's too close, it can look mismatched.
We use Google Analytics cookies to understand how the site is used. Is that OK? Learn more