#2F1589#2F1589
#2F1589 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.173 H 281.4°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2F1589 |
|---|---|
| RGB | rgb(47, 21, 137) |
| HSL | hsl(253, 73%, 31%) |
| HSV | hsv(253, 85%, 54%) |
| CMYK | cmyk(65.7%, 84.7%, 0%, 46.3%) |
| CIE-LAB | lab(19.83, 44.15, -58.90) |
| CIE-LCH | lch(19.83, 73.61, 306.85°) |
| OKLab | oklab(32.9% 0.0343 -0.17) |
| OKLCH | oklch(32.9% 0.173 281.4) |
| XYZ | xyz(5.9544, 2.9464, 23.9170) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.06
Royal
#0C1793
ΔE00 3.17
Darkblue
#00008B
ΔE00 4.33
Cobalt Blue
#030AA7
ΔE00 4.75
Navy
#000080
ΔE00 4.86
Midnight Blue
#191970
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F1589 #6F8915
analogous
#153589 #2F1589 #691589
triadic
#2F1589 #892F15 #15892F
tetradic
#2F1589 #891535 #6F8915 #158969
square
#2F1589 #891535 #6F8915 #158969
split-complementary
#2F1589 #896915 #358915
monochromatic
#0B051F #1D0D54 #2F1589 #411DBE #5E38E0
Accessibility & contrast
On white
13.21
#2F1589 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F1589 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F1589
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F1589 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F1589 | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f1589; /* rgb */ color: rgb(47, 21, 137); /* oklch */ color: oklch(32.9% 0.173 281.4);
Tailwind
colors: {
custom: {
50: '#7558ad',
500: '#2f1589',
950: '#000000',
},
}SCSS
$custom: #2f1589; $custom-light: #7558ad; $custom-dark: #000000;
JSON
{
"hex": "#2f1589",
"rgb": {
"r": 47,
"g": 21,
"b": 137
},
"hsl": {
"h": 253.448,
"s": 73.418,
"l": 30.98
},
"oklch": {
"l": 0.32895,
"c": 0.17338,
"h": 281.4
},
"luminance": 0.02947
}Semantic roles & 50–950 ramp
primary
#2F1589
secondary
#A0BD3D
accent
#F038C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F