#1F022F#1F022F
#1F022F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.7% C 0.088 H 310.4°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1F022F |
|---|---|
| RGB | rgb(31, 2, 47) |
| HSL | hsl(279, 92%, 10%) |
| HSV | hsv(279, 96%, 18%) |
| CMYK | cmyk(34%, 95.7%, 0%, 81.6%) |
| CIE-LAB | lab(4.88, 23.10, -22.58) |
| CIE-LCH | lch(4.88, 32.30, 315.66°) |
| OKLab | oklab(18.71% 0.0567 -0.0667) |
| OKLCH | oklch(18.71% 0.088 310.4) |
| XYZ | xyz(1.0998, 0.5400, 2.7351) |
| Luminance | 0.0054 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Purple
#280137
ΔE00 3.07
Very Dark Purple
#2A0134
ΔE00 3.27
Dark Purple
#35063E
ΔE00 5.29
Dark Violet
#34013F
ΔE00 5.53
Deep Purple
#36013F
ΔE00 5.86
Eggplant
#380835
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F022F #122F02
analogous
#09022F #1F022F #2F0229
triadic
#1F022F #2F1F02 #022F1F
tetradic
#1F022F #2F0902 #122F02 #02292F
square
#1F022F #2F0902 #122F02 #02292F
split-complementary
#1F022F #292F02 #022F09
monochromatic
#13011D #13011D #1F022F #46046A #6C07A4
Accessibility & contrast
On white
18.95
#1F022F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.11
#1F022F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F022F
18.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F022F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F022F | 1.00 | 18.95 | 1.11 | 18.95 |
| #FFFFFF | 18.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1D0C18
Achromatopsia (no color)
#111111
Design tokens & code
CSS
--color: #1f022f; /* rgb */ color: rgb(31, 2, 47); /* oklch */ color: oklch(18.7% 0.088 310.4);
Tailwind
colors: {
custom: {
50: '#5c4768',
500: '#1f022f',
950: '#000000',
},
}SCSS
$custom: #1f022f; $custom-light: #5c4768; $custom-dark: #000000;
JSON
{
"hex": "#1f022f",
"rgb": {
"r": 31,
"g": 2,
"b": 47
},
"hsl": {
"h": 278.667,
"s": 91.837,
"l": 9.608
},
"oklch": {
"l": 0.1871,
"c": 0.08758,
"h": 310.4
},
"luminance": 0.0054
}Semantic roles & 50–950 ramp
primary
#1F022F
secondary
#397419
accent
#FF2975
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A