#0C182A#0C182A
#0C182A is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.8% C 0.040 H 258.3°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).
Color values
| HEX | #0C182A |
|---|---|
| RGB | rgb(12, 24, 42) |
| HSL | hsl(216, 56%, 11%) |
| HSV | hsv(216, 71%, 16%) |
| CMYK | cmyk(71.4%, 42.9%, 0%, 83.5%) |
| CIE-LAB | lab(8.12, 1.68, -13.84) |
| CIE-LCH | lch(8.12, 13.94, 276.91°) |
| OKLab | oklab(20.83% -0.0081 -0.0391) |
| OKLCH | oklch(20.83% 0.04 258.3) |
| XYZ | xyz(0.8960, 0.8985, 2.3163) |
| Luminance | 0.0090 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark
#1B2431
ΔE00 4.82
Navy Blue
#1B2A4A
ΔE00 7.64
Navy (survey)
#01153E
ΔE00 8.04
Dark Navy Blue
#00022E
ΔE00 8.99
Midnight
#03012D
ΔE00 9.36
Dark Navy
#000435
ΔE00 9.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C182A #2A1E0C
analogous
#0C272A #0C182A #0F0C2A
triadic
#0C182A #2A0C18 #182A0C
tetradic
#0C182A #2A0C27 #2A1E0C #0C2A0F
square
#0C182A #2A0C27 #2A1E0C #0C2A0F
split-complementary
#0C182A #2A0F0C #272A0C
monochromatic
#070E18 #070E18 #0C182A #1A335A #274E89
Accessibility & contrast
On white
17.80
#0C182A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.18
#0C182A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C182A
17.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C182A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C182A | 1.00 | 17.80 | 1.18 | 17.80 |
| #FFFFFF | 17.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#11192B
Deuteranopia (green-blind)
#0D162A
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#181818
Design tokens & code
CSS
--color: #0c182a; /* rgb */ color: rgb(12, 24, 42); /* oklch */ color: oklch(20.8% 0.040 258.3);
Tailwind
colors: {
custom: {
50: '#4e5463',
500: '#0c182a',
950: '#000000',
},
}SCSS
$custom: #0c182a; $custom-light: #4e5463; $custom-dark: #000000;
JSON
{
"hex": "#0c182a",
"rgb": {
"r": 12,
"g": 24,
"b": 42
},
"hsl": {
"h": 216,
"s": 55.556,
"l": 10.588
},
"oklch": {
"l": 0.20831,
"c": 0.03994,
"h": 258.3
},
"luminance": 0.00899
}Semantic roles & 50–950 ramp
primary
#0C182A
secondary
#654F2D
accent
#A349DF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879