#2E1489#2E1489
#2E1489 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.174 H 281.0°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1489 |
|---|---|
| RGB | rgb(46, 20, 137) |
| HSL | hsl(253, 75%, 31%) |
| HSV | hsv(253, 85%, 54%) |
| CMYK | cmyk(66.4%, 85.4%, 0%, 46.3%) |
| CIE-LAB | lab(19.58, 44.49, -59.31) |
| CIE-LCH | lch(19.58, 74.14, 306.88°) |
| OKLab | oklab(32.7% 0.0331 -0.1711) |
| OKLCH | oklch(32.7% 0.174 281) |
| XYZ | xyz(5.8908, 2.8868, 23.9088) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.98
Royal
#0C1793
ΔE00 3.10
Darkblue
#00008B
ΔE00 4.13
Cobalt Blue
#030AA7
ΔE00 4.65
Navy
#000080
ΔE00 4.67
Midnight Blue
#191970
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1489 #6F8914
analogous
#143589 #2E1489 #681489
triadic
#2E1489 #892E14 #14892E
tetradic
#2E1489 #891435 #6F8914 #148968
square
#2E1489 #891435 #6F8914 #148968
split-complementary
#2E1489 #896814 #358914
monochromatic
#0A041E #1C0C54 #2E1489 #401CBE #5C36E2
Accessibility & contrast
On white
13.31
#2E1489 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2E1489 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1489
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1489 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1489 | 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)
#00338C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1489; /* rgb */ color: rgb(46, 20, 137); /* oklch */ color: oklch(32.7% 0.174 281.0);
Tailwind
colors: {
custom: {
50: '#7557ad',
500: '#2e1489',
950: '#000000',
},
}SCSS
$custom: #2e1489; $custom-light: #7557ad; $custom-dark: #000000;
JSON
{
"hex": "#2e1489",
"rgb": {
"r": 46,
"g": 20,
"b": 137
},
"hsl": {
"h": 253.333,
"s": 74.522,
"l": 30.784
},
"oklch": {
"l": 0.32704,
"c": 0.17433,
"h": 281
},
"luminance": 0.02887
}Semantic roles & 50–950 ramp
primary
#2E1489
secondary
#A0BD3C
accent
#F137C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F