#2F1584#2F1584
#2F1584 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.168 H 282.4°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1584 |
|---|---|
| RGB | rgb(47, 21, 132) |
| HSL | hsl(254, 73%, 30%) |
| HSV | hsv(254, 84%, 52%) |
| CMYK | cmyk(64.4%, 84.1%, 0%, 48.2%) |
| CIE-LAB | lab(19.25, 42.66, -56.71) |
| CIE-LCH | lch(19.25, 70.97, 306.96°) |
| OKLab | oklab(32.33% 0.036 -0.1636) |
| OKLCH | oklch(32.33% 0.168 282.4) |
| XYZ | xyz(5.6040, 2.8062, 22.0717) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.89
Royal
#0C1793
ΔE00 3.61
Midnight Blue
#191970
ΔE00 4.47
Darkblue
#00008B
ΔE00 4.48
Navy
#000080
ΔE00 4.76
Indigo
#4B0082
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1584 #6A8415
analogous
#153384 #2F1584 #661584
triadic
#2F1584 #842F15 #15842F
tetradic
#2F1584 #841533 #6A8415 #158466
square
#2F1584 #841533 #6A8415 #158466
split-complementary
#2F1584 #846615 #338415
monochromatic
#09041A #1C0D4F #2F1584 #421DB9 #5C35DF
Accessibility & contrast
On white
13.45
#2F1584 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2F1584 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1584
13.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1584 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1584 | 1.00 | 13.45 | 1.56 | 13.45 |
| #FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00374E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f1584; /* rgb */ color: rgb(47, 21, 132); /* oklch */ color: oklch(32.3% 0.168 282.4);
Tailwind
colors: {
custom: {
50: '#7457a9',
500: '#2f1584',
950: '#000000',
},
}SCSS
$custom: #2f1584; $custom-light: #7457a9; $custom-dark: #000000;
JSON
{
"hex": "#2f1584",
"rgb": {
"r": 47,
"g": 21,
"b": 132
},
"hsl": {
"h": 254.054,
"s": 72.549,
"l": 30
},
"oklch": {
"l": 0.32327,
"c": 0.1675,
"h": 282.4
},
"luminance": 0.02807
}Semantic roles & 50–950 ramp
primary
#2F1584
secondary
#9BB93C
accent
#EF39C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F