#1F0F4D#1F0F4D
#1F0F4D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.106 H 287.2°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).
Color values
| HEX | #1F0F4D |
|---|---|
| RGB | rgb(31, 15, 77) |
| HSL | hsl(255, 67%, 18%) |
| HSV | hsv(255, 81%, 30%) |
| CMYK | cmyk(59.7%, 80.5%, 0%, 69.8%) |
| CIE-LAB | lab(10.32, 26.28, -35.25) |
| CIE-LCH | lch(10.32, 43.97, 306.70°) |
| OKLab | oklab(23.86% 0.0314 -0.1014) |
| OKLCH | oklch(23.86% 0.106 287.2) |
| XYZ | xyz(2.0751, 1.1687, 7.1360) |
| Luminance | 0.0117 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.39
Night Blue
#040348
ΔE00 4.08
Navy Blue (survey)
#001146
ΔE00 5.28
Dark Blue
#00035B
ΔE00 5.61
Darkblue (survey)
#030764
ΔE00 6.04
Midnight Blue (survey)
#020035
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F0F4D #3D4D0F
analogous
#0F1E4D #1F0F4D #3E0F4D
triadic
#1F0F4D #4D1F0F #0F4D1F
tetradic
#1F0F4D #4D0F1E #3D4D0F #0F4D3E
square
#1F0F4D #4D0F1E #3D4D0F #0F4D3E
split-complementary
#1F0F4D #4D3E0F #1E4D0F
monochromatic
#0A051A #0A051A #1F0F4D #341980 #4823B3
Accessibility & contrast
On white
17.02
#1F0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.23
#1F0F4D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F0F4D
17.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F0F4D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F0F4D | 1.00 | 17.02 | 1.23 | 17.02 |
| #FFFFFF | 17.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#0C202D
Achromatopsia (no color)
#1C1C1C
Design tokens & code
CSS
--color: #1f0f4d; /* rgb */ color: rgb(31, 15, 77); /* oklch */ color: oklch(23.9% 0.106 287.2);
Tailwind
colors: {
custom: {
50: '#614f7f',
500: '#1f0f4d',
950: '#000000',
},
}SCSS
$custom: #1f0f4d; $custom-light: #614f7f; $custom-dark: #000000;
JSON
{
"hex": "#1f0f4d",
"rgb": {
"r": 31,
"g": 15,
"b": 77
},
"hsl": {
"h": 255.484,
"s": 67.391,
"l": 18.039
},
"oklch": {
"l": 0.23857,
"c": 0.10612,
"h": 287.2
},
"luminance": 0.01169
}Semantic roles & 50–950 ramp
primary
#1F0F4D
secondary
#718731
accent
#EA3EBE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C