About royal blue
A bright, rich blue. This is the CSS royalblue. Its hex code is #4169E1, which is rgb(65, 105, 225): 65 red, 105 green and 225 blue on a scale of 0 to 255.
Royal blue is a cool color.
Royal blue tints and shades
Lighter tints (mixed with white) and darker shades (mixed with black) of royal blue. Click any of them to copy its hex code.
Colors that go with royal blue
Complementary
The opposite color on the color wheel, for strong contrast.
Analogous
Neighbors on the color wheel, for a calm, matching look.
Triadic
Three colors evenly spaced around the wheel, for a balanced, lively palette.
Split complementary
The two colors either side of the complement: contrast without clashing.
Text on royal blue
White text
Black text
For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). White text is the better choice on royal blue. Test other combinations with the contrast checker.
Using royal blue in CSS
.element {
color: #4169E1;
background-color: rgb(65 105 225);
border-color: hsl(225 73% 57%);
}
Frequently asked questions
What is the hex code for royal blue?
Royal blue is #4169E1. In RGB it's rgb(65, 105, 225), and in HSL it's hsl(225, 73%, 57%).
What colors go with royal blue?
Its complementary color is #E1B941, which gives strong contrast. For a softer look, use analogous colors #41B9E1 and #6941E1. Royal blue also pairs well with white.
Is royal blue warm or cool?
Royal blue is a cool color.
Should I use white or black text on royal blue?
Use white text. Its contrast ratio on royal blue is 4.84:1, versus 4.33:1 for black.
Similar colors
- Blue#0000FFrgb(0, 0, 255)
- Cobalt blue#0047ABrgb(0, 71, 171)
- Lavender#E6E6FArgb(230, 230, 250)
- Navy blue#000080rgb(0, 0, 128)
- Baby blue#89CFF0rgb(137, 207, 240)
- Periwinkle#CCCCFFrgb(204, 204, 255)
See all popular colors · All HTML color names · Open royal blue in the color picker