#2E1166#2E1166
#2E1166 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.135 H 290.5°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1166 |
|---|---|
| RGB | rgb(46, 17, 102) |
| HSL | hsl(260, 71%, 23%) |
| HSV | hsv(260, 83%, 40%) |
| CMYK | cmyk(54.9%, 83.3%, 0%, 60%) |
| CIE-LAB | lab(15.17, 35.46, -44.09) |
| CIE-LCH | lch(15.17, 56.58, 308.81°) |
| OKLab | oklab(28.49% 0.0475 -0.1267) |
| OKLCH | oklch(28.49% 0.135 290.5) |
| XYZ | xyz(3.7247, 1.9409, 12.7462) |
| Luminance | 0.0194 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.63
Midnight Blue
#191970
ΔE00 4.38
Darkblue (survey)
#030764
ΔE00 4.98
Indigo (survey)
#380282
ΔE00 5.15
Dark Royal Blue
#02066F
ΔE00 5.22
Deep Blue
#040273
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1166 #496611
analogous
#111E66 #2E1166 #581166
triadic
#2E1166 #662E11 #11662E
tetradic
#2E1166 #66111E #496611 #116658
square
#2E1166 #66111E #496611 #116658
split-complementary
#2E1166 #665811 #1E6611
monochromatic
#0C041A #160832 #2E1166 #461A9A #5D22CF
Accessibility & contrast
On white
15.13
#2E1166 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2E1166 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1166
15.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1166 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1166 | 1.00 | 15.13 | 1.39 | 15.13 |
| #FFFFFF | 15.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#1A2A3B
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2e1166; /* rgb */ color: rgb(46, 17, 102); /* oklch */ color: oklch(28.5% 0.135 290.5);
Tailwind
colors: {
custom: {
50: '#6e5393',
500: '#2e1166',
950: '#000000',
},
}SCSS
$custom: #2e1166; $custom-light: #6e5393; $custom-dark: #000000;
JSON
{
"hex": "#2e1166",
"rgb": {
"r": 46,
"g": 17,
"b": 102
},
"hsl": {
"h": 260.471,
"s": 71.429,
"l": 23.333
},
"oklch": {
"l": 0.28487,
"c": 0.13534,
"h": 290.5
},
"luminance": 0.01941
}Semantic roles & 50–950 ramp
primary
#2E1166
secondary
#7A9E35
accent
#EE3AB1
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E