AfoliOpen Afoli →

Royal color #0C1793

Royal is a color name from the xkcd color survey for the hex code #0C1793 — RGB 12, 23, 147, HSL 235°, 85%, 31%.

Open in Afoli Colour tools →

#0C1793Royal

Color codes

HEX
#0C1793
RGB
rgb(12, 23, 147)
HSL
hsl(235, 85%, 31%)
CMYK
92%, 84%, 0%, 42%
OKLCH
oklch(32.3% 0.192 266.5)

Tints and shades

#F0F5FF#C9DAFF#A3BEFF#7CA2FF#5783FF#4068E3#2B4EC7#1833AB#0B1390#050066#010036

Color harmonies

Complementary
#0C1793#423000
Analogous
#003852#0C1793#410080
Triadic
#0C1793#670007#004010
Split complementary
#0C1793#512700#323800
Tetradic
#0C1793#620035#423000#003D33

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Royal text on white13.47 : 198AAA — any text
Royal text on black1.56 : 10Fails for text
White text on Royal13.47 : 1-102AAA — any text
Black text on Royal1.56 : 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 Royal?

Royal has the hex code #0C1793, which is RGB 12, 23, 147 and HSL 235°, 85%, 31%.

Which text color reads best on Royal?

White text: contrast 13.47 : 1 (black text: 1.56 : 1).

Which colors go well with Royal?

Its complementary color is #423000; analogous colors are #003852 and #410080; a triadic set adds #670007 and #004010.

Similar colors

Sources and licences

Updated November 21, 2026