#2E1886#2E1886
#2E1886 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.168 H 281.1°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1886 |
|---|---|
| RGB | rgb(46, 24, 134) |
| HSL | hsl(252, 70%, 31%) |
| HSV | hsv(252, 82%, 53%) |
| CMYK | cmyk(65.7%, 82.1%, 0%, 47.5%) |
| CIE-LAB | lab(19.86, 41.76, -56.96) |
| CIE-LCH | lch(19.86, 70.63, 306.25°) |
| OKLab | oklab(32.79% 0.0321 -0.1644) |
| OKLCH | oklch(32.79% 0.168 281.1) |
| XYZ | xyz(5.7551, 2.9549, 22.8167) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.25
Indigo (survey)
#380282
ΔE00 3.52
Midnight Blue
#191970
ΔE00 4.41
Darkblue
#00008B
ΔE00 4.72
Navy
#000080
ΔE00 5.09
Cobalt Blue
#030AA7
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1886 #708618
analogous
#183986 #2E1886 #651886
triadic
#2E1886 #862E18 #18862E
tetradic
#2E1886 #861839 #708618 #188665
square
#2E1886 #861839 #708618 #188665
split-complementary
#2E1886 #866518 #398618
monochromatic
#0A051E #1C0F52 #2E1886 #4021BA #5C3CDC
Accessibility & contrast
On white
13.20
#2E1886 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E1886 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1886
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1886 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1886 | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1886; /* rgb */ color: rgb(46, 24, 134); /* oklch */ color: oklch(32.8% 0.168 281.1);
Tailwind
colors: {
custom: {
50: '#7459aa',
500: '#2e1886',
950: '#000000',
},
}SCSS
$custom: #2e1886; $custom-light: #7459aa; $custom-dark: #000000;
JSON
{
"hex": "#2e1886",
"rgb": {
"r": 46,
"g": 24,
"b": 134
},
"hsl": {
"h": 252,
"s": 69.62,
"l": 30.98
},
"oklch": {
"l": 0.32794,
"c": 0.1675,
"h": 281.1
},
"luminance": 0.02955
}Semantic roles & 50–950 ramp
primary
#2E1886
secondary
#A1BA40
accent
#EC3BC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F