#2E1784#2E1784
#2E1784 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.166 H 281.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1784 |
|---|---|
| RGB | rgb(46, 23, 132) |
| HSL | hsl(253, 70%, 30%) |
| HSV | hsv(253, 83%, 52%) |
| CMYK | cmyk(65.2%, 82.6%, 0%, 48.2%) |
| CIE-LAB | lab(19.47, 41.63, -56.35) |
| CIE-LCH | lch(19.47, 70.06, 306.46°) |
| OKLab | oklab(32.46% 0.0333 -0.1626) |
| OKLCH | oklch(32.46% 0.166 281.6) |
| XYZ | xyz(5.5967, 2.8592, 22.0823) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.31
Royal
#0C1793
ΔE00 3.46
Midnight Blue
#191970
ΔE00 4.24
Darkblue
#00008B
ΔE00 4.65
Navy
#000080
ΔE00 4.93
Deep Blue
#040273
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1784 #6D8417
analogous
#173684 #2E1784 #651784
triadic
#2E1784 #842E17 #17842E
tetradic
#2E1784 #841736 #6D8417 #178465
square
#2E1784 #841736 #6D8417 #178465
split-complementary
#2E1784 #846517 #368417
monochromatic
#0A051C #1C0E50 #2E1784 #4020B8 #5B39DC
Accessibility & contrast
On white
13.36
#2E1784 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2E1784 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1784
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1784 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1784 | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1784; /* rgb */ color: rgb(46, 23, 132); /* oklch */ color: oklch(32.5% 0.166 281.6);
Tailwind
colors: {
custom: {
50: '#7458a9',
500: '#2e1784',
950: '#000000',
},
}SCSS
$custom: #2e1784; $custom-light: #7458a9; $custom-dark: #000000;
JSON
{
"hex": "#2e1784",
"rgb": {
"r": 46,
"g": 23,
"b": 132
},
"hsl": {
"h": 252.661,
"s": 70.323,
"l": 30.392
},
"oklch": {
"l": 0.32455,
"c": 0.16597,
"h": 281.6
},
"luminance": 0.0286
}Semantic roles & 50–950 ramp
primary
#2E1784
secondary
#9FB83F
accent
#ED3BC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F