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%.
#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
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Royal text on white | 13.47 : 1 | 98 | AAA — any text |
| Royal text on black | 1.56 : 1 | 0 | Fails for text |
| White text on Royal | 13.47 : 1 | -102 | AAA — any text |
| Black text on Royal | 1.56 : 1 | 0 | Fails for 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
- Cobalt Blue #030AA7
- Dark Blue #00008B
- Navy #000080
- Ultramarine #2000B1
- Midnight Blue #191970
- Dark Royal Blue #02066F
- Indigo Blue #3A18B1
- Sapphire #2138AB
- Medium Blue #0000CD
- Marine #042E60
Sources and licences
- xkcd color survey (Randall Munroe, CC0 1.0)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)