#2E1566#2E1566
#2E1566 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.131 H 289.7°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1566 |
|---|---|
| RGB | rgb(46, 21, 102) |
| HSL | hsl(259, 66%, 24%) |
| HSV | hsv(259, 79%, 40%) |
| CMYK | cmyk(54.9%, 79.4%, 0%, 60%) |
| CIE-LAB | lab(15.88, 33.43, -42.92) |
| CIE-LCH | lch(15.88, 54.41, 307.91°) |
| OKLab | oklab(28.98% 0.0442 -0.1233) |
| OKLCH | oklch(28.98% 0.131 289.7) |
| XYZ | xyz(3.7925, 2.0763, 12.7687) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.89
Midnight Blue
#191970
ΔE00 4.02
Darkblue (survey)
#030764
ΔE00 5.30
Dark Royal Blue
#02066F
ΔE00 5.60
Indigo (survey)
#380282
ΔE00 5.64
Deep Blue
#040273
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1566 #4D6615
analogous
#152466 #2E1566 #571566
triadic
#2E1566 #662E15 #15662E
tetradic
#2E1566 #661524 #4D6615 #156657
square
#2E1566 #661524 #4D6615 #156657
split-complementary
#2E1566 #665715 #246615
monochromatic
#0B0519 #170B33 #2E1566 #451F99 #5C2ACC
Accessibility & contrast
On white
14.84
#2E1566 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2E1566 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1566
14.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1566 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1566 | 1.00 | 14.84 | 1.42 | 14.84 |
| #FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#192B3C
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2e1566; /* rgb */ color: rgb(46, 21, 102); /* oklch */ color: oklch(29.0% 0.131 289.7);
Tailwind
colors: {
custom: {
50: '#6e5592',
500: '#2e1566',
950: '#000000',
},
}SCSS
$custom: #2e1566; $custom-light: #6e5592; $custom-dark: #000000;
JSON
{
"hex": "#2e1566",
"rgb": {
"r": 46,
"g": 21,
"b": 102
},
"hsl": {
"h": 258.519,
"s": 65.854,
"l": 24.118
},
"oklch": {
"l": 0.28982,
"c": 0.13102,
"h": 289.7
},
"luminance": 0.02076
}Semantic roles & 50–950 ramp
primary
#2E1566
secondary
#7E9D3A
accent
#E93FB4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E