#2E1589#2E1589
#2E1589 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.174 H 280.8°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1589 |
|---|---|
| RGB | rgb(46, 21, 137) |
| HSL | hsl(253, 73%, 31%) |
| HSV | hsv(253, 85%, 54%) |
| CMYK | cmyk(66.4%, 84.7%, 0%, 46.3%) |
| CIE-LAB | lab(19.73, 44.05, -59.06) |
| CIE-LCH | lch(19.73, 73.68, 306.72°) |
| OKLab | oklab(32.81% 0.0327 -0.1705) |
| OKLCH | oklch(32.81% 0.174 280.8) |
| XYZ | xyz(5.9088, 2.9229, 23.9148) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.06
Indigo (survey)
#380282
ΔE00 3.12
Darkblue
#00008B
ΔE00 4.25
Cobalt Blue
#030AA7
ΔE00 4.69
Navy
#000080
ΔE00 4.78
Midnight Blue
#191970
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1589 #708915
analogous
#153689 #2E1589 #681589
triadic
#2E1589 #892E15 #15892E
tetradic
#2E1589 #891536 #708915 #158968
square
#2E1589 #891536 #708915 #158968
split-complementary
#2E1589 #896815 #368915
monochromatic
#0A051F #1C0D54 #2E1589 #401DBE #5C38E0
Accessibility & contrast
On white
13.25
#2E1589 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2E1589 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1589
13.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1589 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1589 | 1.00 | 13.25 | 1.58 | 13.25 |
| #FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1589; /* rgb */ color: rgb(46, 21, 137); /* oklch */ color: oklch(32.8% 0.174 280.8);
Tailwind
colors: {
custom: {
50: '#7558ad',
500: '#2e1589',
950: '#000000',
},
}SCSS
$custom: #2e1589; $custom-light: #7558ad; $custom-dark: #000000;
JSON
{
"hex": "#2e1589",
"rgb": {
"r": 46,
"g": 21,
"b": 137
},
"hsl": {
"h": 252.931,
"s": 73.418,
"l": 30.98
},
"oklch": {
"l": 0.32805,
"c": 0.17356,
"h": 280.8
},
"luminance": 0.02923
}Semantic roles & 50–950 ramp
primary
#2E1589
secondary
#A1BD3D
accent
#F038C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F