AfoliOpen Afoli →

Royal Blue color #4169E1

Royal Blue is one of the CSS named colors (keyword royalblue) with the hex code #4169E1 — RGB 65, 105, 225, HSL 225°, 73%, 57%.

Open in Afoli Colour tools →

#4169E1Royal Blue

Color codes

HEX
#4169E1
RGB
rgb(65, 105, 225)
HSL
hsl(225, 73%, 57%)
CMYK
71%, 53%, 0%, 12%
OKLCH
oklch(56% 0.188 266.4)
CSS keyword
royalblue

Tints and shades

#F0F5FF#C9DAFF#A3BEFF#7CA2FF#5783FE#4169E1#2C4FC5#1934A9#0B158E#050066#010036

Color harmonies

Complementary
#4169E1#926F00
Analogous
#007EB2#4169E1#8254D3
Triadic
#4169E1#CB3532#008D2E
Split complementary
#4169E1#AF5B00#717D00
Tetradic
#4169E1#C33377#926F00#008873

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Royal Blue text on white4.85 : 173AA — body text
Royal Blue text on black4.33 : 1-29AA for large text only
White text on Royal Blue4.85 : 1-79AA — body text
Black text on Royal Blue4.33 : 131AA for large text only

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Royal Blue?

Royal Blue has the hex code #4169E1, which is RGB 65, 105, 225 and HSL 225°, 73%, 57%.

Which text color reads best on Royal Blue?

White text: contrast 4.85 : 1 (black text: 4.33 : 1).

Which colors go well with Royal Blue?

Its complementary color is #926F00; analogous colors are #007EB2 and #8254D3; a triadic set adds #CB3532 and #008D2E.

Similar colors

Sources and licences

Updated November 21, 2026