#2E1466#2E1466
#2E1466 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.132 H 289.9°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1466 |
|---|---|
| RGB | rgb(46, 20, 102) |
| HSL | hsl(259, 67%, 24%) |
| HSV | hsv(259, 80%, 40%) |
| CMYK | cmyk(54.9%, 80.4%, 0%, 60%) |
| CIE-LAB | lab(15.70, 33.96, -43.23) |
| CIE-LCH | lch(15.70, 54.97, 308.15°) |
| OKLab | oklab(28.85% 0.045 -0.1242) |
| OKLCH | oklch(28.85% 0.132 289.9) |
| XYZ | xyz(3.7744, 2.0403, 12.7627) |
| Luminance | 0.0204 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.80
Midnight Blue
#191970
ΔE00 4.10
Darkblue (survey)
#030764
ΔE00 5.20
Dark Royal Blue
#02066F
ΔE00 5.49
Indigo (survey)
#380282
ΔE00 5.50
Deep Blue
#040273
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1466 #4C6614
analogous
#142366 #2E1466 #571466
triadic
#2E1466 #662E14 #14662E
tetradic
#2E1466 #661423 #4C6614 #146657
square
#2E1466 #661423 #4C6614 #146657
split-complementary
#2E1466 #665714 #236614
monochromatic
#0C051A #170A33 #2E1466 #451E99 #5C28CC
Accessibility & contrast
On white
14.91
#2E1466 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2E1466 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1466
14.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1466 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1466 | 1.00 | 14.91 | 1.41 | 14.91 |
| #FFFFFF | 14.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#192B3C
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2e1466; /* rgb */ color: rgb(46, 20, 102); /* oklch */ color: oklch(28.9% 0.132 289.9);
Tailwind
colors: {
custom: {
50: '#6e5592',
500: '#2e1466',
950: '#000000',
},
}SCSS
$custom: #2e1466; $custom-light: #6e5592; $custom-dark: #000000;
JSON
{
"hex": "#2e1466",
"rgb": {
"r": 46,
"g": 20,
"b": 102
},
"hsl": {
"h": 259.024,
"s": 67.213,
"l": 23.922
},
"oklch": {
"l": 0.28852,
"c": 0.13215,
"h": 289.9
},
"luminance": 0.0204
}Semantic roles & 50–950 ramp
primary
#2E1466
secondary
#7D9D39
accent
#EA3EB3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E