#2F1581#2F1581
#2F1581 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.164 H 283.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1581 |
|---|---|
| RGB | rgb(47, 21, 129) |
| HSL | hsl(254, 72%, 29%) |
| HSV | hsv(254, 84%, 51%) |
| CMYK | cmyk(63.6%, 83.7%, 0%, 49.4%) |
| CIE-LAB | lab(18.91, 41.77, -55.38) |
| CIE-LCH | lch(18.91, 69.36, 307.03°) |
| OKLab | oklab(31.99% 0.0371 -0.1597) |
| OKLCH | oklch(31.99% 0.164 283.1) |
| XYZ | xyz(5.4017, 2.7253, 21.0060) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.89
Royal
#0C1793
ΔE00 3.92
Midnight Blue
#191970
ΔE00 4.19
Darkblue
#00008B
ΔE00 4.63
Navy
#000080
ΔE00 4.76
Indigo
#4B0082
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1581 #678115
analogous
#153181 #2F1581 #651581
triadic
#2F1581 #812F15 #15812F
tetradic
#2F1581 #811531 #678115 #158165
square
#2F1581 #811531 #678115 #158165
split-complementary
#2F1581 #816515 #318115
monochromatic
#0A041A #1C0C4C #2F1581 #421EB6 #5C33DE
Accessibility & contrast
On white
13.59
#2F1581 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2F1581 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1581
13.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1581 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1581 | 1.00 | 13.59 | 1.55 | 13.59 |
| #FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f1581; /* rgb */ color: rgb(47, 21, 129); /* oklch */ color: oklch(32.0% 0.164 283.1);
Tailwind
colors: {
custom: {
50: '#7457a7',
500: '#2f1581',
950: '#000000',
},
}SCSS
$custom: #2f1581; $custom-light: #7457a7; $custom-dark: #000000;
JSON
{
"hex": "#2f1581",
"rgb": {
"r": 47,
"g": 21,
"b": 129
},
"hsl": {
"h": 254.444,
"s": 72,
"l": 29.412
},
"oklch": {
"l": 0.3199,
"c": 0.16394,
"h": 283.1
},
"luminance": 0.02726
}Semantic roles & 50–950 ramp
primary
#2F1581
secondary
#98B63C
accent
#EF39C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F