#1F0D2F#1F0D2F
#1F0D2F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.067 H 305.8°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).
Color values
| HEX | #1F0D2F |
|---|---|
| RGB | rgb(31, 13, 47) |
| HSL | hsl(272, 57%, 12%) |
| HSV | hsv(272, 72%, 18%) |
| CMYK | cmyk(34%, 72.3%, 0%, 81.6%) |
| CIE-LAB | lab(7.09, 17.63, -19.06) |
| CIE-LCH | lch(7.09, 25.96, 312.76°) |
| OKLab | oklab(20.63% 0.0389 -0.054) |
| OKLCH | oklch(20.63% 0.067 305.8) |
| XYZ | xyz(1.2220, 0.7844, 2.7758) |
| Luminance | 0.0078 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Very Dark Purple
#2A0134
ΔE00 5.68
Midnight Purple
#280137
ΔE00 5.75
Dark Purple
#35063E
ΔE00 6.92
Eggplant
#380835
ΔE00 7.35
Dark Violet
#34013F
ΔE00 7.60
Midnight
#03012D
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F0D2F #1D2F0D
analogous
#0E0D2F #1F0D2F #2F0D2E
triadic
#1F0D2F #2F1F0D #0D2F1F
tetradic
#1F0D2F #2F0E0D #1D2F0D #0D2E2F
square
#1F0D2F #2F0E0D #1D2F0D #0D2E2F
split-complementary
#1F0D2F #2E2F0D #0D2F0E
monochromatic
#100718 #100718 #1F0D2F #3F1A5F #5E288F
Accessibility & contrast
On white
18.15
#1F0D2F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.16
#1F0D2F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F0D2F
18.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F0D2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F0D2F | 1.00 | 18.15 | 1.16 | 18.15 |
| #FFFFFF | 18.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#021530
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#1C141C
Achromatopsia (no color)
#161616
Design tokens & code
CSS
--color: #1f0d2f; /* rgb */ color: rgb(31, 13, 47); /* oklch */ color: oklch(20.6% 0.067 305.8);
Tailwind
colors: {
custom: {
50: '#5c4c68',
500: '#1f0d2f',
950: '#000000',
},
}SCSS
$custom: #1f0d2f; $custom-light: #5c4c68; $custom-dark: #000000;
JSON
{
"hex": "#1f0d2f",
"rgb": {
"r": 31,
"g": 13,
"b": 47
},
"hsl": {
"h": 271.765,
"s": 56.667,
"l": 11.765
},
"oklch": {
"l": 0.2063,
"c": 0.06657,
"h": 305.8
},
"luminance": 0.00784
}Semantic roles & 50–950 ramp
primary
#1F0D2F
secondary
#4A6A2E
accent
#E0488F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A