#2E1366#2E1366
#2E1366 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.133 H 290.1°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1366 |
|---|---|
| RGB | rgb(46, 19, 102) |
| HSL | hsl(260, 69%, 24%) |
| HSV | hsv(260, 81%, 40%) |
| CMYK | cmyk(54.9%, 81.4%, 0%, 60%) |
| CIE-LAB | lab(15.52, 34.48, -43.52) |
| CIE-LCH | lch(15.52, 55.52, 308.38°) |
| OKLab | oklab(28.73% 0.0459 -0.1251) |
| OKLCH | oklch(28.73% 0.133 290.1) |
| XYZ | xyz(3.7572, 2.0057, 12.7570) |
| Luminance | 0.0201 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.73
Midnight Blue
#191970
ΔE00 4.19
Darkblue (survey)
#030764
ΔE00 5.12
Indigo (survey)
#380282
ΔE00 5.38
Dark Royal Blue
#02066F
ΔE00 5.39
Deep Blue
#040273
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1366 #4B6613
analogous
#132166 #2E1366 #571366
triadic
#2E1366 #662E13 #13662E
tetradic
#2E1366 #661321 #4B6613 #136657
square
#2E1366 #661321 #4B6613 #136657
split-complementary
#2E1366 #665713 #216613
monochromatic
#0C051A #170932 #2E1366 #451D9A #5D26CD
Accessibility & contrast
On white
14.99
#2E1366 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2E1366 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1366
14.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1366 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1366 | 1.00 | 14.99 | 1.40 | 14.99 |
| #FFFFFF | 14.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#1A2A3C
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2e1366; /* rgb */ color: rgb(46, 19, 102); /* oklch */ color: oklch(28.7% 0.133 290.1);
Tailwind
colors: {
custom: {
50: '#6e5492',
500: '#2e1366',
950: '#000000',
},
}SCSS
$custom: #2e1366; $custom-light: #6e5492; $custom-dark: #000000;
JSON
{
"hex": "#2e1366",
"rgb": {
"r": 46,
"g": 19,
"b": 102
},
"hsl": {
"h": 259.518,
"s": 68.595,
"l": 23.725
},
"oklch": {
"l": 0.28726,
"c": 0.13324,
"h": 290.1
},
"luminance": 0.02006
}Semantic roles & 50–950 ramp
primary
#2E1366
secondary
#7C9D37
accent
#EB3CB2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E