#040D2C#040D2C
#040D2C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.4% C 0.065 H 265.6°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).
Color values
| HEX | #040D2C |
|---|---|
| RGB | rgb(4, 13, 44) |
| HSL | hsl(227, 83%, 9%) |
| HSV | hsv(227, 91%, 17%) |
| CMYK | cmyk(90.9%, 70.5%, 0%, 82.7%) |
| CIE-LAB | lab(4.47, 7.28, -21.11) |
| CIE-LCH | lch(4.47, 22.33, 289.02°) |
| OKLab | oklab(17.4% -0.005 -0.0644) |
| OKLCH | oklch(17.4% 0.065 265.6) |
| XYZ | xyz(0.6485, 0.4954, 2.4438) |
| Luminance | 0.0050 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Navy Blue
#00022E
ΔE00 3.25
Midnight
#03012D
ΔE00 3.56
Navy (survey)
#01153E
ΔE00 4.10
Dark Navy
#000435
ΔE00 4.63
Very Dark Blue
#000133
ΔE00 4.71
Midnight Blue (survey)
#020035
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#040D2C #2C2304
analogous
#04212C #040D2C #0F042C
triadic
#040D2C #2C040D #0D2C04
tetradic
#040D2C #2C0421 #2C2304 #042C0F
square
#040D2C #2C0421 #2C2304 #042C0F
split-complementary
#040D2C #2C0F04 #212C04
monochromatic
#03081C #03081C #040D2C #091E64 #0E2E9C
Accessibility & contrast
On white
19.10
#040D2C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.10
#040D2C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #040D2C
19.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##040D2C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##040D2C | 1.00 | 19.10 | 1.10 | 19.10 |
| #FFFFFF | 19.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 19.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#000E2B
Tritanopia (blue-blind)
#00151A
Achromatopsia (no color)
#0F0F0F
Design tokens & code
CSS
--color: #040d2c; /* rgb */ color: rgb(4, 13, 44); /* oklch */ color: oklch(17.4% 0.065 265.6);
Tailwind
colors: {
custom: {
50: '#4a4c65',
500: '#040d2c',
950: '#000000',
},
}SCSS
$custom: #040d2c; $custom-light: #4a4c65; $custom-dark: #000000;
JSON
{
"hex": "#040d2c",
"rgb": {
"r": 4,
"g": 13,
"b": 44
},
"hsl": {
"h": 226.5,
"s": 83.333,
"l": 9.412
},
"oklch": {
"l": 0.17401,
"c": 0.06462,
"h": 265.6
},
"luminance": 0.00496
}Semantic roles & 50–950 ramp
primary
#040D2C
secondary
#6F5C1D
accent
#CC2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A