#2E1586#2E1586
#2E1586 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.170 H 281.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1586 |
|---|---|
| RGB | rgb(46, 21, 134) |
| HSL | hsl(253, 73%, 30%) |
| HSV | hsv(253, 84%, 53%) |
| CMYK | cmyk(65.7%, 84.3%, 0%, 47.5%) |
| CIE-LAB | lab(19.38, 43.16, -57.75) |
| CIE-LCH | lch(19.38, 72.10, 306.77°) |
| OKLab | oklab(32.46% 0.0337 -0.1666) |
| OKLCH | oklch(32.46% 0.17 281.4) |
| XYZ | xyz(5.6966, 2.8380, 22.7972) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.01
Royal
#0C1793
ΔE00 3.31
Darkblue
#00008B
ΔE00 4.32
Midnight Blue
#191970
ΔE00 4.60
Navy
#000080
ΔE00 4.70
Cobalt Blue
#030AA7
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1586 #6D8615
analogous
#153586 #2E1586 #661586
triadic
#2E1586 #862E15 #15862E
tetradic
#2E1586 #861535 #6D8615 #158666
square
#2E1586 #861535 #6D8615 #158666
split-complementary
#2E1586 #866615 #358615
monochromatic
#0A041C #1C0D51 #2E1586 #401DBB #5B36DF
Accessibility & contrast
On white
13.40
#2E1586 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2E1586 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1586
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1586 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1586 | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00384F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1586; /* rgb */ color: rgb(46, 21, 134); /* oklch */ color: oklch(32.5% 0.170 281.4);
Tailwind
colors: {
custom: {
50: '#7458aa',
500: '#2e1586',
950: '#000000',
},
}SCSS
$custom: #2e1586; $custom-light: #7458aa; $custom-dark: #000000;
JSON
{
"hex": "#2e1586",
"rgb": {
"r": 46,
"g": 21,
"b": 134
},
"hsl": {
"h": 253.274,
"s": 72.903,
"l": 30.392
},
"oklch": {
"l": 0.32462,
"c": 0.17003,
"h": 281.4
},
"luminance": 0.02838
}Semantic roles & 50–950 ramp
primary
#2E1586
secondary
#9FBA3C
accent
#F038C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F