#2E1583#2E1583
#2E1583 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.166 H 282.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1583 |
|---|---|
| RGB | rgb(46, 21, 131) |
| HSL | hsl(254, 72%, 30%) |
| HSV | hsv(254, 84%, 51%) |
| CMYK | cmyk(64.9%, 84%, 0%, 48.6%) |
| CIE-LAB | lab(19.04, 42.26, -56.43) |
| CIE-LCH | lch(19.04, 70.50, 306.83°) |
| OKLab | oklab(32.12% 0.0348 -0.1628) |
| OKLCH | oklch(32.12% 0.166 282) |
| XYZ | xyz(5.4903, 2.7555, 21.7109) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.96
Royal
#0C1793
ΔE00 3.60
Midnight Blue
#191970
ΔE00 4.29
Darkblue
#00008B
ΔE00 4.44
Navy
#000080
ΔE00 4.66
Deep Blue
#040273
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1583 #6A8315
analogous
#153383 #2E1583 #651583
triadic
#2E1583 #832E15 #15832E
tetradic
#2E1583 #831533 #6A8315 #158365
square
#2E1583 #831533 #6A8315 #158365
split-complementary
#2E1583 #836515 #338315
monochromatic
#09041A #1B0D4E #2E1583 #411DB8 #5B34DE
Accessibility & contrast
On white
13.54
#2E1583 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2E1583 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1583
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1583 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1583 | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e1583; /* rgb */ color: rgb(46, 21, 131); /* oklch */ color: oklch(32.1% 0.166 282.0);
Tailwind
colors: {
custom: {
50: '#7457a8',
500: '#2e1583',
950: '#000000',
},
}SCSS
$custom: #2e1583; $custom-light: #7457a8; $custom-dark: #000000;
JSON
{
"hex": "#2e1583",
"rgb": {
"r": 46,
"g": 21,
"b": 131
},
"hsl": {
"h": 253.636,
"s": 72.368,
"l": 29.804
},
"oklch": {
"l": 0.32122,
"c": 0.16648,
"h": 282
},
"luminance": 0.02756
}Semantic roles & 50–950 ramp
primary
#2E1583
secondary
#9CB83C
accent
#EF39C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F