#2E1785#2E1785
#2E1785 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.167 H 281.4°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1785 |
|---|---|
| RGB | rgb(46, 23, 133) |
| HSL | hsl(253, 71%, 31%) |
| HSV | hsv(253, 83%, 52%) |
| CMYK | cmyk(65.4%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(19.58, 41.93, -56.79) |
| CIE-LCH | lch(19.58, 70.60, 306.44°) |
| OKLab | oklab(32.57% 0.033 -0.1639) |
| OKLCH | oklch(32.57% 0.167 281.4) |
| XYZ | xyz(5.6654, 2.8867, 22.4444) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.32
Royal
#0C1793
ΔE00 3.36
Midnight Blue
#191970
ΔE00 4.35
Darkblue
#00008B
ΔE00 4.61
Navy
#000080
ΔE00 4.94
Cobalt Blue
#030AA7
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1785 #6E8517
analogous
#173785 #2E1785 #651785
triadic
#2E1785 #852E17 #17852E
tetradic
#2E1785 #851737 #6E8517 #178565
square
#2E1785 #851737 #6E8517 #178565
split-complementary
#2E1785 #856517 #378517
monochromatic
#0A051D #1C0E51 #2E1785 #4020B9 #5C3ADD
Accessibility & contrast
On white
13.31
#2E1785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2E1785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1785
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1785 | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1785; /* rgb */ color: rgb(46, 23, 133); /* oklch */ color: oklch(32.6% 0.167 281.4);
Tailwind
colors: {
custom: {
50: '#7458aa',
500: '#2e1785',
950: '#000000',
},
}SCSS
$custom: #2e1785; $custom-light: #7458aa; $custom-dark: #000000;
JSON
{
"hex": "#2e1785",
"rgb": {
"r": 46,
"g": 23,
"b": 133
},
"hsl": {
"h": 252.545,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.32567,
"c": 0.16717,
"h": 281.4
},
"luminance": 0.02887
}Semantic roles & 50–950 ramp
primary
#2E1785
secondary
#9FB93F
accent
#ED3BC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F