#0C0F2E#0C0F2E
#0C0F2E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.061 H 274.7°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).
Color values
| HEX | #0C0F2E |
|---|---|
| RGB | rgb(12, 15, 46) |
| HSL | hsl(235, 59%, 11%) |
| HSV | hsv(235, 74%, 18%) |
| CMYK | cmyk(73.9%, 67.4%, 0%, 82%) |
| CIE-LAB | lab(5.57, 9.38, -20.84) |
| CIE-LCH | lch(5.57, 22.85, 294.23°) |
| OKLab | oklab(18.76% 0.005 -0.0613) |
| OKLCH | oklch(18.76% 0.061 274.7) |
| XYZ | xyz(0.8154, 0.6170, 2.6604) |
| Luminance | 0.0062 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight
#03012D
ΔE00 3.27
Dark Navy Blue
#00022E
ΔE00 3.45
Navy (survey)
#01153E
ΔE00 4.46
Dark Navy
#000435
ΔE00 4.70
Very Dark Blue
#000133
ΔE00 4.76
Midnight Blue (survey)
#020035
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C0F2E #2E2B0C
analogous
#0C202E #0C0F2E #1A0C2E
triadic
#0C0F2E #2E0C0F #0F2E0C
tetradic
#0C0F2E #2E0C20 #2E2B0C #0C2E1A
square
#0C0F2E #2E0C20 #2E2B0C #0C2E1A
split-complementary
#0C0F2E #2E1A0C #202E0C
monochromatic
#060818 #060818 #0C0F2E #191F5F #252F8F
Accessibility & contrast
On white
18.69
#0C0F2E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.12
#0C0F2E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C0F2E
18.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C0F2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C0F2E | 1.00 | 18.69 | 1.12 | 18.69 |
| #FFFFFF | 18.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00142F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#121212
Design tokens & code
CSS
--color: #0c0f2e; /* rgb */ color: rgb(12, 15, 46); /* oklch */ color: oklch(18.8% 0.061 274.7);
Tailwind
colors: {
custom: {
50: '#4e4d67',
500: '#0c0f2e',
950: '#000000',
},
}SCSS
$custom: #0c0f2e; $custom-light: #4e4d67; $custom-dark: #000000;
JSON
{
"hex": "#0c0f2e",
"rgb": {
"r": 12,
"g": 15,
"b": 46
},
"hsl": {
"h": 234.706,
"s": 58.621,
"l": 11.373
},
"oklch": {
"l": 0.18759,
"c": 0.06148,
"h": 274.7
},
"luminance": 0.00617
}Semantic roles & 50–950 ramp
primary
#0C0F2E
secondary
#6A642C
accent
#D446E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A