#2E1889#2E1889
#2E1889 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.171 H 280.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1889 |
|---|---|
| RGB | rgb(46, 24, 137) |
| HSL | hsl(252, 70%, 32%) |
| HSV | hsv(252, 82%, 54%) |
| CMYK | cmyk(66.4%, 82.5%, 0%, 46.3%) |
| CIE-LAB | lab(20.20, 42.68, -58.28) |
| CIE-LCH | lch(20.20, 72.24, 306.21°) |
| OKLab | oklab(33.13% 0.0312 -0.1682) |
| OKLCH | oklch(33.13% 0.171 280.5) |
| XYZ | xyz(5.9673, 3.0398, 23.9343) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.00
Indigo (survey)
#380282
ΔE00 3.60
Darkblue
#00008B
ΔE00 4.64
Midnight Blue
#191970
ΔE00 4.76
Cobalt Blue
#030AA7
ΔE00 4.85
Navy
#000080
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1889 #738918
analogous
#183B89 #2E1889 #671889
triadic
#2E1889 #892E18 #18892E
tetradic
#2E1889 #89183B #738918 #188967
square
#2E1889 #89183B #738918 #188967
split-complementary
#2E1889 #896718 #3B8918
monochromatic
#0B0621 #1D0F55 #2E1889 #3F21BD #5D3EDD
Accessibility & contrast
On white
13.06
#2E1889 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2E1889 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1889
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1889 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1889 | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1889; /* rgb */ color: rgb(46, 24, 137); /* oklch */ color: oklch(33.1% 0.171 280.5);
Tailwind
colors: {
custom: {
50: '#7559ad',
500: '#2e1889',
950: '#000000',
},
}SCSS
$custom: #2e1889; $custom-light: #7559ad; $custom-dark: #000000;
JSON
{
"hex": "#2e1889",
"rgb": {
"r": 46,
"g": 24,
"b": 137
},
"hsl": {
"h": 251.681,
"s": 70.186,
"l": 31.569
},
"oklch": {
"l": 0.3313,
"c": 0.1711,
"h": 280.5
},
"luminance": 0.0304
}Semantic roles & 50–950 ramp
primary
#2E1889
secondary
#A4BD40
accent
#ED3BCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F