#1F012F#1F012F
#1F012F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.090 H 310.8°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).
Color values
| HEX | #1F012F |
|---|---|
| RGB | rgb(31, 1, 47) |
| HSL | hsl(279, 96%, 9%) |
| HSV | hsv(279, 98%, 18%) |
| CMYK | cmyk(34%, 97.9%, 0%, 81.6%) |
| CIE-LAB | lab(4.68, 23.57, -22.89) |
| CIE-LCH | lch(4.68, 32.86, 315.84°) |
| OKLab | oklab(18.52% 0.0586 -0.068) |
| OKLCH | oklch(18.52% 0.09 310.8) |
| XYZ | xyz(1.0889, 0.5183, 2.7314) |
| Luminance | 0.0052 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Purple
#280137
ΔE00 2.91
Very Dark Purple
#2A0134
ΔE00 3.15
Dark Purple
#35063E
ΔE00 5.24
Dark Violet
#34013F
ΔE00 5.42
Deep Purple
#36013F
ΔE00 5.76
Eggplant
#380835
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F012F #112F01
analogous
#08012F #1F012F #2F0128
triadic
#1F012F #2F1F01 #012F1F
tetradic
#1F012F #2F0801 #112F01 #01282F
square
#1F012F #2F0801 #112F01 #01282F
split-complementary
#1F012F #282F01 #012F08
monochromatic
#14011E #14011E #1F012F #47026B #6E04A7
Accessibility & contrast
On white
19.03
#1F012F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.10
#1F012F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F012F
19.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F012F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F012F | 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)
#000F30
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#1D0B18
Achromatopsia (no color)
#101010
Design tokens & code
CSS
--color: #1f012f; /* rgb */ color: rgb(31, 1, 47); /* oklch */ color: oklch(18.5% 0.090 310.8);
Tailwind
colors: {
custom: {
50: '#5c4668',
500: '#1f012f',
950: '#000000',
},
}SCSS
$custom: #1f012f; $custom-light: #5c4668; $custom-dark: #000000;
JSON
{
"hex": "#1f012f",
"rgb": {
"r": 31,
"g": 1,
"b": 47
},
"hsl": {
"h": 279.13,
"s": 95.833,
"l": 9.412
},
"oklch": {
"l": 0.18519,
"c": 0.08981,
"h": 310.8
},
"luminance": 0.00518
}Semantic roles & 50–950 ramp
primary
#1F012F
secondary
#387517
accent
#FF2973
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A