#2E1786#2E1786
#2E1786 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.168 H 281.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1786 |
|---|---|
| RGB | rgb(46, 23, 134) |
| HSL | hsl(252, 71%, 31%) |
| HSV | hsv(252, 83%, 53%) |
| CMYK | cmyk(65.7%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(19.70, 42.24, -57.23) |
| CIE-LCH | lch(19.70, 71.13, 306.43°) |
| OKLab | oklab(32.68% 0.0327 -0.1652) |
| OKLCH | oklch(32.68% 0.168 281.2) |
| XYZ | xyz(5.7348, 2.9144, 22.8100) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.26
Indigo (survey)
#380282
ΔE00 3.34
Midnight Blue
#191970
ΔE00 4.46
Darkblue
#00008B
ΔE00 4.57
Navy
#000080
ΔE00 4.95
Cobalt Blue
#030AA7
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1786 #6F8617
analogous
#173886 #2E1786 #651786
triadic
#2E1786 #862E17 #17862E
tetradic
#2E1786 #861738 #6F8617 #178665
square
#2E1786 #861738 #6F8617 #178665
split-complementary
#2E1786 #866517 #388617
monochromatic
#0A051E #1C0E52 #2E1786 #4020BA #5C3ADD
Accessibility & contrast
On white
13.27
#2E1786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2E1786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1786
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1786 | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1786; /* rgb */ color: rgb(46, 23, 134); /* oklch */ color: oklch(32.7% 0.168 281.2);
Tailwind
colors: {
custom: {
50: '#7458aa',
500: '#2e1786',
950: '#000000',
},
}SCSS
$custom: #2e1786; $custom-light: #7458aa; $custom-dark: #000000;
JSON
{
"hex": "#2e1786",
"rgb": {
"r": 46,
"g": 23,
"b": 134
},
"hsl": {
"h": 252.432,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.3268,
"c": 0.16836,
"h": 281.2
},
"luminance": 0.02915
}Semantic roles & 50–950 ramp
primary
#2E1786
secondary
#A0BA3F
accent
#ED3AC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F