#2E1689#2E1689
#2E1689 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.173 H 280.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1689 |
|---|---|
| RGB | rgb(46, 22, 137) |
| HSL | hsl(253, 72%, 31%) |
| HSV | hsv(253, 84%, 54%) |
| CMYK | cmyk(66.4%, 83.9%, 0%, 46.3%) |
| CIE-LAB | lab(19.88, 43.61, -58.81) |
| CIE-LCH | lch(19.88, 73.22, 306.56°) |
| OKLab | oklab(32.91% 0.0322 -0.1697) |
| OKLCH | oklch(32.91% 0.173 280.7) |
| XYZ | xyz(5.9276, 2.9603, 23.9211) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.03
Indigo (survey)
#380282
ΔE00 3.27
Darkblue
#00008B
ΔE00 4.37
Cobalt Blue
#030AA7
ΔE00 4.74
Midnight Blue
#191970
ΔE00 4.87
Navy
#000080
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1689 #718916
analogous
#163789 #2E1689 #671689
triadic
#2E1689 #892E16 #16892E
tetradic
#2E1689 #891637 #718916 #168967
square
#2E1689 #891637 #718916 #168967
split-complementary
#2E1689 #896716 #378916
monochromatic
#0B0520 #1C0E54 #2E1689 #401EBE #5D3ADF
Accessibility & contrast
On white
13.19
#2E1689 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E1689 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1689
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1689 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1689 | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1689; /* rgb */ color: rgb(46, 22, 137); /* oklch */ color: oklch(32.9% 0.173 280.7);
Tailwind
colors: {
custom: {
50: '#7558ad',
500: '#2e1689',
950: '#000000',
},
}SCSS
$custom: #2e1689; $custom-light: #7558ad; $custom-dark: #000000;
JSON
{
"hex": "#2e1689",
"rgb": {
"r": 46,
"g": 22,
"b": 137
},
"hsl": {
"h": 252.522,
"s": 72.327,
"l": 31.176
},
"oklch": {
"l": 0.3291,
"c": 0.17276,
"h": 280.7
},
"luminance": 0.02961
}Semantic roles & 50–950 ramp
primary
#2E1689
secondary
#A2BD3E
accent
#EF39C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F