Royal Blue Color
HEX #4169E1 · rgb(65, 105, 225) · hsl(225, 73%, 57%)
Royal Blue color codes
Royal Blue is one of the named colors every browser understands. In CSS you can write it as royalblue or #4169E1.
| Format | Value | |
|---|---|---|
| HEX | #4169E1 | |
| RGB | rgb(65, 105, 225) | |
| HSL | hsl(225, 73%, 57%) | |
| CMYK | 71%, 53%, 0%, 12% | |
| CSS name | royalblue |
.example {
color: royalblue;
background-color: #4169E1;
border-color: rgb(65, 105, 225);
}
Colors that go with royal blue
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of royal blue
Tints mix the color with white; shades mix it with black.
Royal Blue
Contrast and readability
4.33:1
large text only
4.85:1
passes AA
Use white text on royal blue. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for royal blue?
The hex code for royal blue is #4169E1.
What is the RGB value of royal blue?
Royal Blue is rgb(65, 105, 225): 65 red, 105 green and 225 blue on a 0 to 255 scale.
What color goes with royal blue?
Its complementary color is #E1B941, which is closest to the named color goldenrod. Analogous and triadic matches are listed on this page.
Should text on royal blue be black or white?
Use white text. The contrast ratio is 4.33:1 with black and 4.85:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.