#040F2C#040F2C
#040F2C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.061 H 263.6°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).
Color values
| HEX | #040F2C |
|---|---|
| RGB | rgb(4, 15, 44) |
| HSL | hsl(224, 83%, 9%) |
| HSV | hsv(224, 91%, 17%) |
| CMYK | cmyk(90.9%, 65.9%, 0%, 82.7%) |
| CIE-LAB | lab(4.96, 6.28, -20.35) |
| CIE-LCH | lch(4.96, 21.29, 287.16°) |
| OKLab | oklab(17.92% -0.0068 -0.0611) |
| OKLCH | oklch(17.92% 0.061 263.6) |
| XYZ | xyz(0.6754, 0.5492, 2.4528) |
| Luminance | 0.0055 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Navy Blue
#00022E
ΔE00 3.97
Navy (survey)
#01153E
ΔE00 4.30
Midnight
#03012D
ΔE00 4.33
Dark Navy
#000435
ΔE00 5.22
Very Dark Blue
#000133
ΔE00 5.34
Midnight Blue (survey)
#020035
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#040F2C #2C2104
analogous
#04232C #040F2C #0D042C
triadic
#040F2C #2C040F #0F2C04
tetradic
#040F2C #2C0423 #2C2104 #042C0D
square
#040F2C #2C0423 #2C2104 #042C0D
split-complementary
#040F2C #2C0D04 #232C04
monochromatic
#030A1C #030A1C #040F2C #092264 #0E359C
Accessibility & contrast
On white
18.92
#040F2C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.11
#040F2C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #040F2C
18.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##040F2C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##040F2C | 1.00 | 18.92 | 1.11 | 18.92 |
| #FFFFFF | 18.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00132D
Deuteranopia (green-blind)
#000F2B
Tritanopia (blue-blind)
#00161B
Achromatopsia (no color)
#111111
Design tokens & code
CSS
--color: #040f2c; /* rgb */ color: rgb(4, 15, 44); /* oklch */ color: oklch(17.9% 0.061 263.6);
Tailwind
colors: {
custom: {
50: '#4a4d65',
500: '#040f2c',
950: '#000000',
},
}SCSS
$custom: #040f2c; $custom-light: #4a4d65; $custom-dark: #000000;
JSON
{
"hex": "#040f2c",
"rgb": {
"r": 4,
"g": 15,
"b": 44
},
"hsl": {
"h": 223.5,
"s": 83.333,
"l": 9.412
},
"oklch": {
"l": 0.17923,
"c": 0.06147,
"h": 263.6
},
"luminance": 0.00549
}Semantic roles & 50–950 ramp
primary
#040F2C
secondary
#6F581D
accent
#C22EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A