#2E1666#2E1666
#2E1666 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.130 H 289.5°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1666 |
|---|---|
| RGB | rgb(46, 22, 102) |
| HSL | hsl(258, 65%, 24%) |
| HSV | hsv(258, 78%, 40%) |
| CMYK | cmyk(54.9%, 78.4%, 0%, 60%) |
| CIE-LAB | lab(16.07, 32.89, -42.61) |
| CIE-LCH | lch(16.07, 53.83, 307.66°) |
| OKLab | oklab(29.12% 0.0433 -0.1224) |
| OKLCH | oklch(29.12% 0.13 289.5) |
| XYZ | xyz(3.8112, 2.1138, 12.7750) |
| Luminance | 0.0211 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.96
Dark Indigo
#1F0954
ΔE00 3.99
Darkblue (survey)
#030764
ΔE00 5.41
Dark Royal Blue
#02066F
ΔE00 5.72
Indigo (survey)
#380282
ΔE00 5.79
Deep Blue
#040273
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1666 #4E6616
analogous
#162666 #2E1666 #561666
triadic
#2E1666 #662E16 #16662E
tetradic
#2E1666 #661626 #4E6616 #166656
square
#2E1666 #661626 #4E6616 #166656
split-complementary
#2E1666 #665616 #266616
monochromatic
#0B0519 #170B34 #2E1666 #452198 #5B2CCB
Accessibility & contrast
On white
14.76
#2E1666 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2E1666 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1666
14.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1666 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1666 | 1.00 | 14.76 | 1.42 | 14.76 |
| #FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#192C3D
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2e1666; /* rgb */ color: rgb(46, 22, 102); /* oklch */ color: oklch(29.1% 0.130 289.5);
Tailwind
colors: {
custom: {
50: '#6e5692',
500: '#2e1666',
950: '#000000',
},
}SCSS
$custom: #2e1666; $custom-light: #6e5692; $custom-dark: #000000;
JSON
{
"hex": "#2e1666",
"rgb": {
"r": 46,
"g": 22,
"b": 102
},
"hsl": {
"h": 258,
"s": 64.516,
"l": 24.314
},
"oklch": {
"l": 0.29117,
"c": 0.12987,
"h": 289.5
},
"luminance": 0.02114
}Semantic roles & 50–950 ramp
primary
#2E1666
secondary
#7F9D3B
accent
#E840B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E