AfoliOpen Afoli →

Dark Royal Blue color #02066F

Dark Royal Blue is a color name from the xkcd color survey for the hex code #02066F — RGB 2, 6, 111, HSL 238°, 96%, 22%.

Open in Afoli Colour tools →

#02066FDark Royal Blue

Color codes

HEX
#02066F
RGB
rgb(2, 6, 111)
HSL
hsl(238, 96%, 22%)
CMYK
98%, 95%, 0%, 56%
OKLCH
oklch(25.2% 0.165 265)

Tints and shades

#F0F5FF#C8DAFF#A1BFFF#79A2FF#5B87F0#446DD4#2E54B8#193B9D#072083#020067#010036

Color harmonies

Complementary
#02066F#2E2000
Analogous
#002638#02066F#2B005C
Triadic
#02066F#480005#002B05
Split complementary
#02066F#381800#222500
Tetradic
#02066F#440025#2E2000#002921

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Dark Royal Blue text on white16.69 : 1102AAA — any text
Dark Royal Blue text on black1.26 : 10Fails for text
White text on Dark Royal Blue16.69 : 1-105AAA — any text
Black text on Dark Royal Blue1.26 : 10Fails for text

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 Dark Royal Blue?

Dark Royal Blue has the hex code #02066F, which is RGB 2, 6, 111 and HSL 238°, 96%, 22%.

Which text color reads best on Dark Royal Blue?

White text: contrast 16.69 : 1 (black text: 1.26 : 1).

Which colors go well with Dark Royal Blue?

Its complementary color is #2E2000; analogous colors are #002638 and #2B005C; a triadic set adds #480005 and #002B05.

Similar colors

Sources and licences

Updated November 21, 2026