#1F022C#1F022C
#1F022C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.4% C 0.084 H 313.2°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).
Color values
| HEX | #1F022C |
|---|---|
| RGB | rgb(31, 2, 44) |
| HSL | hsl(281, 91%, 9%) |
| HSV | hsv(281, 95%, 17%) |
| CMYK | cmyk(29.5%, 95.5%, 0%, 82.7%) |
| CIE-LAB | lab(4.67, 21.97, -20.66) |
| CIE-LCH | lch(4.67, 30.16, 316.77°) |
| OKLab | oklab(18.41% 0.0578 -0.0615) |
| OKLCH | oklch(18.41% 0.084 313.2) |
| XYZ | xyz(1.0413, 0.5166, 2.4272) |
| Luminance | 0.0052 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Very Dark Purple
#2A0134
ΔE00 3.61
Midnight Purple
#280137
ΔE00 3.73
Dark Purple
#35063E
ΔE00 5.64
Dark Violet
#34013F
ΔE00 6.04
Deep Purple
#36013F
ΔE00 6.30
Eggplant
#380835
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F022C #0F2C02
analogous
#0A022C #1F022C #2C0224
triadic
#1F022C #2C1F02 #022C1F
tetradic
#1F022C #2C0A02 #0F2C02 #02242C
square
#1F022C #2C0A02 #0F2C02 #02242C
split-complementary
#1F022C #242C02 #022C0A
monochromatic
#15011D #15011D #1F022C #480567 #7107A1
Accessibility & contrast
On white
19.03
#1F022C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.10
#1F022C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F022C
19.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F022C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F022C | 1.00 | 19.03 | 1.10 | 19.03 |
| #FFFFFF | 19.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 19.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#1E0B16
Achromatopsia (no color)
#101010
Design tokens & code
CSS
--color: #1f022c; /* rgb */ color: rgb(31, 2, 44); /* oklch */ color: oklch(18.4% 0.084 313.2);
Tailwind
colors: {
custom: {
50: '#5c4765',
500: '#1f022c',
950: '#000000',
},
}SCSS
$custom: #1f022c; $custom-light: #5c4765; $custom-dark: #000000;
JSON
{
"hex": "#1f022c",
"rgb": {
"r": 31,
"g": 2,
"b": 44
},
"hsl": {
"h": 281.429,
"s": 91.304,
"l": 9.02
},
"oklch": {
"l": 0.1841,
"c": 0.08438,
"h": 313.2
},
"luminance": 0.00517
}Semantic roles & 50–950 ramp
primary
#1F022C
secondary
#347119
accent
#FF296B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A