#2E1788#2E1788
#2E1788 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.171 H 280.8°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1788 |
|---|---|
| RGB | rgb(46, 23, 136) |
| HSL | hsl(252, 71%, 31%) |
| HSV | hsv(252, 83%, 53%) |
| CMYK | cmyk(66.2%, 83.1%, 0%, 46.7%) |
| CIE-LAB | lab(19.93, 42.84, -58.11) |
| CIE-LCH | lch(19.93, 72.20, 306.40°) |
| OKLab | oklab(32.91% 0.032 -0.1677) |
| OKLCH | oklch(32.91% 0.171 280.8) |
| XYZ | xyz(5.8756, 2.9708, 23.5516) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.09
Indigo (survey)
#380282
ΔE00 3.40
Darkblue
#00008B
ΔE00 4.52
Midnight Blue
#191970
ΔE00 4.69
Cobalt Blue
#030AA7
ΔE00 4.92
Navy
#000080
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1788 #718817
analogous
#173888 #2E1788 #661788
triadic
#2E1788 #882E17 #17882E
tetradic
#2E1788 #881738 #718817 #178866
square
#2E1788 #881738 #718817 #178866
split-complementary
#2E1788 #886617 #388817
monochromatic
#0B051F #1C0E54 #2E1788 #4020BC #5D3BDE
Accessibility & contrast
On white
13.17
#2E1788 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E1788 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1788
13.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1788 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1788 | 1.00 | 13.17 | 1.59 | 13.17 |
| #FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1788; /* rgb */ color: rgb(46, 23, 136); /* oklch */ color: oklch(32.9% 0.171 280.8);
Tailwind
colors: {
custom: {
50: '#7459ac',
500: '#2e1788',
950: '#000000',
},
}SCSS
$custom: #2e1788; $custom-light: #7459ac; $custom-dark: #000000;
JSON
{
"hex": "#2e1788",
"rgb": {
"r": 46,
"g": 23,
"b": 136
},
"hsl": {
"h": 252.212,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.32905,
"c": 0.17075,
"h": 280.8
},
"luminance": 0.02971
}Semantic roles & 50–950 ramp
primary
#2E1788
secondary
#A2BC3F
accent
#EE3AC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F