CSS named color
RoyalBlue Color Code
RoyalBlue is a medium, vivid blue with the hex code #4169E1. In RGB it is rgb(65, 105, 225), in HSL hsl(225, 73%, 57%) and in CMYK cmyk(71%, 53%, 0%, 12%).
Color values
In CSS you can write it as the keyword royalblue.
White text on RoyalBlue has a contrast ratio of 4.85:1 and black text 4.33:1, so white text is the more readable choice.
The closest Tailwind CSS color is Blue 600 (#2563EB).
Use RoyalBlue in CSS
.element {
color: royalblue;
background-color: #4169e1;
border-color: rgb(65, 105, 225);
} Tints and shades of RoyalBlue
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with RoyalBlue
Color-wheel harmonies built from #4169E1. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on RoyalBlue
Colors similar to RoyalBlue
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about RoyalBlue
What is the hex code for RoyalBlue?
The hex code for RoyalBlue is #4169E1. Its RGB value is rgb(65, 105, 225) and its HSL value is hsl(225, 73%, 57%).
What colors go with RoyalBlue?
The complementary color of RoyalBlue is #E1B941. For a softer scheme try the analogous colors #41B9E1 and #6941E1; for a balanced three-color scheme use the triadic colors #E14169 and #69E141.
Is RoyalBlue readable as a text color?
On a white background RoyalBlue has a contrast ratio of 4.85:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 4.33:1.