#1F0D4C#1F0D4C
#1F0D4C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.107 H 288.2°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).
Color values
| HEX | #1F0D4C |
|---|---|
| RGB | rgb(31, 13, 76) |
| HSL | hsl(257, 71%, 17%) |
| HSV | hsv(257, 83%, 30%) |
| CMYK | cmyk(59.2%, 82.9%, 0%, 70.2%) |
| CIE-LAB | lab(9.81, 27.11, -35.41) |
| CIE-LCH | lch(9.81, 44.60, 307.44°) |
| OKLab | oklab(23.46% 0.0335 -0.1018) |
| OKLCH | oklch(23.46% 0.107 288.2) |
| XYZ | xyz(2.0131, 1.1009, 6.9425) |
| Luminance | 0.0110 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.16
Night Blue
#040348
ΔE00 3.95
Dark Blue
#00035B
ΔE00 5.49
Navy Blue (survey)
#001146
ΔE00 5.59
Darkblue (survey)
#030764
ΔE00 6.02
Midnight Purple
#280137
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F0D4C #3A4C0D
analogous
#0D1A4C #1F0D4C #3F0D4C
triadic
#1F0D4C #4C1F0D #0D4C1F
tetradic
#1F0D4C #4C0D1A #3A4C0D #0D4C3F
square
#1F0D4C #4C0D1A #3A4C0D #0D4C3F
split-complementary
#1F0D4C #4C3F0D #1A4C0D
monochromatic
#0B041A #0B041A #1F0D4C #341680 #4A1FB5
Accessibility & contrast
On white
17.21
#1F0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.22
#1F0D4C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F0D4C
17.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F0D4C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F0D4C | 1.00 | 17.21 | 1.22 | 17.21 |
| #FFFFFF | 17.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00194B
Tritanopia (blue-blind)
#0D1E2C
Achromatopsia (no color)
#1B1B1B
Design tokens & code
CSS
--color: #1f0d4c; /* rgb */ color: rgb(31, 13, 76); /* oklch */ color: oklch(23.5% 0.107 288.2);
Tailwind
colors: {
custom: {
50: '#614e7f',
500: '#1f0d4c',
950: '#000000',
},
}SCSS
$custom: #1f0d4c; $custom-light: #614e7f; $custom-dark: #000000;
JSON
{
"hex": "#1f0d4c",
"rgb": {
"r": 31,
"g": 13,
"b": 76
},
"hsl": {
"h": 257.143,
"s": 70.787,
"l": 17.451
},
"oklch": {
"l": 0.23458,
"c": 0.10721,
"h": 288.2
},
"luminance": 0.01101
}Semantic roles & 50–950 ramp
primary
#1F0D4C
secondary
#6E872E
accent
#EE3ABA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C