#0F0C2C#0F0C2C
#0F0C2C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.062 H 282.5°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).
Color values
| HEX | #0F0C2C |
|---|---|
| RGB | rgb(15, 12, 44) |
| HSL | hsl(246, 57%, 11%) |
| HSV | hsv(246, 73%, 17%) |
| CMYK | cmyk(65.9%, 72.7%, 0%, 82.7%) |
| CIE-LAB | lab(4.93, 10.80, -20.34) |
| CIE-LCH | lch(4.93, 23.03, 297.97°) |
| OKLab | oklab(18.14% 0.0135 -0.0608) |
| OKLCH | oklch(18.14% 0.062 282.5) |
| XYZ | xyz(0.7830, 0.5463, 2.4466) |
| Luminance | 0.0055 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight
#03012D
ΔE00 3.37
Dark Navy Blue
#00022E
ΔE00 3.87
Very Dark Blue
#000133
ΔE00 5.02
Dark Navy
#000435
ΔE00 5.05
Midnight Blue (survey)
#020035
ΔE00 5.51
Navy (survey)
#01153E
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0F0C2C #292C0C
analogous
#0C192C #0F0C2C #1F0C2C
triadic
#0F0C2C #2C0F0C #0C2C0F
tetradic
#0F0C2C #2C0C19 #292C0C #0C2C1F
square
#0F0C2C #2C0C19 #292C0C #0C2C1F
split-complementary
#0F0C2C #2C1F0C #192C0C
monochromatic
#080718 #080718 #0F0C2C #1F195C #30268C
Accessibility & contrast
On white
18.93
#0F0C2C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.11
#0F0C2C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0F0C2C
18.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0F0C2C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0F0C2C | 1.00 | 18.93 | 1.11 | 18.93 |
| #FFFFFF | 18.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#04141A
Achromatopsia (no color)
#111111
Design tokens & code
CSS
--color: #0f0c2c; /* rgb */ color: rgb(15, 12, 44); /* oklch */ color: oklch(18.1% 0.062 282.5);
Tailwind
colors: {
custom: {
50: '#4f4c65',
500: '#0f0c2c',
950: '#000000',
},
}SCSS
$custom: #0f0c2c; $custom-light: #4f4c65; $custom-dark: #000000;
JSON
{
"hex": "#0f0c2c",
"rgb": {
"r": 15,
"g": 12,
"b": 44
},
"hsl": {
"h": 245.625,
"s": 57.143,
"l": 10.98
},
"oklch": {
"l": 0.18144,
"c": 0.06227,
"h": 282.5
},
"luminance": 0.00546
}Semantic roles & 50–950 ramp
primary
#0F0C2C
secondary
#62672C
accent
#E047D2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A