#0D021F#0D021F
#0D021F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.9% C 0.063 H 297.8°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).
Color values
| HEX | #0D021F |
|---|---|
| RGB | rgb(13, 2, 31) |
| HSL | hsl(263, 88%, 6%) |
| HSV | hsv(263, 94%, 12%) |
| CMYK | cmyk(58.1%, 93.5%, 0%, 87.8%) |
| CIE-LAB | lab(2.06, 8.94, -14.78) |
| CIE-LCH | lch(2.06, 17.27, 301.18°) |
| OKLab | oklab(13.94% 0.0296 -0.0561) |
| OKLCH | oklch(13.94% 0.063 297.8) |
| XYZ | xyz(0.4349, 0.2279, 1.3171) |
| Luminance | 0.0023 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight
#03012D
ΔE00 6.20
Dark Navy Blue
#00022E
ΔE00 6.67
Very Dark Blue
#000133
ΔE00 8.12
Dark Navy
#000435
ΔE00 8.28
Midnight Blue (survey)
#020035
ΔE00 8.66
Navy (survey)
#01153E
ΔE00 8.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0D021F #141F02
analogous
#02061F #0D021F #1C021F
triadic
#0D021F #1F0D02 #021F0D
tetradic
#0D021F #1F0206 #141F02 #021F1C
square
#0D021F #1F0206 #141F02 #021F1C
split-complementary
#0D021F #1F1C02 #061F02
monochromatic
#0C021D #0C021D #0D021F #250658 #3D0992
Accessibility & contrast
On white
20.08
#0D021F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.05
#0D021F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0D021F
20.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0D021F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0D021F | 1.00 | 20.08 | 1.05 | 20.08 |
| #FFFFFF | 20.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 20.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00071E
Tritanopia (blue-blind)
#08070F
Achromatopsia (no color)
#080808
Design tokens & code
CSS
--color: #0d021f; /* rgb */ color: rgb(13, 2, 31); /* oklch */ color: oklch(13.9% 0.063 297.8);
Tailwind
colors: {
custom: {
50: '#4c475a',
500: '#0d021f',
950: '#000000',
},
}SCSS
$custom: #0d021f; $custom-light: #4c475a; $custom-dark: #000000;
JSON
{
"hex": "#0d021f",
"rgb": {
"r": 13,
"g": 2,
"b": 31
},
"hsl": {
"h": 262.759,
"s": 87.879,
"l": 6.471
},
"oklch": {
"l": 0.13944,
"c": 0.06343,
"h": 297.8
},
"luminance": 0.00228
}Semantic roles & 50–950 ramp
primary
#0D021F
secondary
#486518
accent
#FE2AAE
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779