#0C172F#0C172F
#0C172F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.9% C 0.050 H 264.0°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).
Color values
| HEX | #0C172F |
|---|---|
| RGB | rgb(12, 23, 47) |
| HSL | hsl(221, 59%, 12%) |
| HSV | hsv(221, 74%, 18%) |
| CMYK | cmyk(74.5%, 51.1%, 0%, 81.6%) |
| CIE-LAB | lab(8.09, 4.63, -17.57) |
| CIE-LCH | lch(8.09, 18.17, 284.78°) |
| OKLab | oklab(20.93% -0.0052 -0.05) |
| OKLCH | oklch(20.93% 0.05 264) |
| XYZ | xyz(0.9709, 0.8961, 2.8106) |
| Luminance | 0.0090 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy (survey)
#01153E
ΔE00 5.46
Dark Navy Blue
#00022E
ΔE00 6.35
Navy Blue
#1B2A4A
ΔE00 6.46
Midnight
#03012D
ΔE00 6.64
Dark Navy
#000435
ΔE00 7.31
Dark
#1B2431
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C172F #2F240C
analogous
#0C292F #0C172F #130C2F
triadic
#0C172F #2F0C17 #172F0C
tetradic
#0C172F #2F0C29 #2F240C #0C2F13
square
#0C172F #2F0C29 #2F240C #0C2F13
split-complementary
#0C172F #2F130C #292F0C
monochromatic
#060C18 #060C18 #0C172F #182F60 #254791
Accessibility & contrast
On white
17.81
#0C172F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.18
#0C172F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C172F
17.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C172F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C172F | 1.00 | 17.81 | 1.18 | 17.81 |
| #FFFFFF | 17.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#181818
Design tokens & code
CSS
--color: #0c172f; /* rgb */ color: rgb(12, 23, 47); /* oklch */ color: oklch(20.9% 0.050 264.0);
Tailwind
colors: {
custom: {
50: '#4f5367',
500: '#0c172f',
950: '#000000',
},
}SCSS
$custom: #0c172f; $custom-light: #4f5367; $custom-dark: #000000;
JSON
{
"hex": "#0c172f",
"rgb": {
"r": 12,
"g": 23,
"b": 47
},
"hsl": {
"h": 221.143,
"s": 59.322,
"l": 11.569
},
"oklch": {
"l": 0.20926,
"c": 0.0503,
"h": 264
},
"luminance": 0.00896
}Semantic roles & 50–950 ramp
primary
#0C172F
secondary
#6B572C
accent
#B145E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A