#2E1476#2E1476
#2E1476 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.152 H 285.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1476 |
|---|---|
| RGB | rgb(46, 20, 118) |
| HSL | hsl(256, 71%, 27%) |
| HSV | hsv(256, 83%, 46%) |
| CMYK | cmyk(61%, 83.1%, 0%, 53.7%) |
| CIE-LAB | lab(17.41, 38.81, -50.83) |
| CIE-LCH | lch(17.41, 63.96, 307.36°) |
| OKLab | oklab(30.56% 0.0398 -0.1465) |
| OKLCH | oklch(30.56% 0.152 285.2) |
| XYZ | xyz(4.6459, 2.3889, 17.3523) |
| Luminance | 0.0239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.40
Midnight Blue
#191970
ΔE00 3.46
Dark Royal Blue
#02066F
ΔE00 4.65
Deep Blue
#040273
ΔE00 4.75
Navy
#000080
ΔE00 5.03
Royal
#0C1793
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1476 #5C7614
analogous
#142B76 #2E1476 #5F1476
triadic
#2E1476 #762E14 #14762E
tetradic
#2E1476 #76142B #5C7614 #14765F
square
#2E1476 #76142B #5C7614 #14765F
split-complementary
#2E1476 #765F14 #2B7614
monochromatic
#0A041A #1A0B42 #2E1476 #421DAA #592ADB
Accessibility & contrast
On white
14.21
#2E1476 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2E1476 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1476
14.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1476 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1476 | 1.00 | 14.21 | 1.48 | 14.21 |
| #FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#053145
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2e1476; /* rgb */ color: rgb(46, 20, 118); /* oklch */ color: oklch(30.6% 0.152 285.2);
Tailwind
colors: {
custom: {
50: '#71569f',
500: '#2e1476',
950: '#000000',
},
}SCSS
$custom: #2e1476; $custom-light: #71569f; $custom-dark: #000000;
JSON
{
"hex": "#2e1476",
"rgb": {
"r": 46,
"g": 20,
"b": 118
},
"hsl": {
"h": 255.918,
"s": 71.014,
"l": 27.059
},
"oklch": {
"l": 0.3056,
"c": 0.15179,
"h": 285.2
},
"luminance": 0.02389
}Semantic roles & 50–950 ramp
primary
#2E1476
secondary
#8EAC3A
accent
#EE3ABE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E