#2E1884#2E1884
#2E1884 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.165 H 281.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1884 |
|---|---|
| RGB | rgb(46, 24, 132) |
| HSL | hsl(252, 69%, 31%) |
| HSV | hsv(252, 82%, 52%) |
| CMYK | cmyk(65.2%, 81.8%, 0%, 48.2%) |
| CIE-LAB | lab(19.64, 41.15, -56.07) |
| CIE-LCH | lch(19.64, 69.55, 306.27°) |
| OKLab | oklab(32.57% 0.0328 -0.1618) |
| OKLCH | oklch(32.57% 0.165 281.4) |
| XYZ | xyz(5.6169, 2.8996, 22.0890) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.45
Indigo (survey)
#380282
ΔE00 3.49
Midnight Blue
#191970
ΔE00 4.18
Darkblue
#00008B
ΔE00 4.79
Navy
#000080
ΔE00 5.07
Cobalt Blue
#030AA7
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1884 #6E8418
analogous
#183884 #2E1884 #641884
triadic
#2E1884 #842E18 #18842E
tetradic
#2E1884 #841838 #6E8418 #188464
square
#2E1884 #841838 #6E8418 #188464
split-complementary
#2E1884 #846418 #388418
monochromatic
#0A051C #1C0F50 #2E1884 #4021B8 #5C3BDB
Accessibility & contrast
On white
13.29
#2E1884 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2E1884 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1884
13.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1884 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1884 | 1.00 | 13.29 | 1.58 | 13.29 |
| #FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1884; /* rgb */ color: rgb(46, 24, 132); /* oklch */ color: oklch(32.6% 0.165 281.4);
Tailwind
colors: {
custom: {
50: '#7359a9',
500: '#2e1884',
950: '#000000',
},
}SCSS
$custom: #2e1884; $custom-light: #7359a9; $custom-dark: #000000;
JSON
{
"hex": "#2e1884",
"rgb": {
"r": 46,
"g": 24,
"b": 132
},
"hsl": {
"h": 252.222,
"s": 69.231,
"l": 30.588
},
"oklch": {
"l": 0.32571,
"c": 0.16508,
"h": 281.4
},
"luminance": 0.029
}Semantic roles & 50–950 ramp
primary
#2E1884
secondary
#9FB840
accent
#EC3CC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F