#2E1684#2E1684
#2E1684 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.167 H 281.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1684 |
|---|---|
| RGB | rgb(46, 22, 132) |
| HSL | hsl(253, 71%, 30%) |
| HSV | hsv(253, 83%, 52%) |
| CMYK | cmyk(65.2%, 83.3%, 0%, 48.2%) |
| CIE-LAB | lab(19.31, 42.10, -56.62) |
| CIE-LCH | lch(19.31, 70.55, 306.64°) |
| OKLab | oklab(32.34% 0.0339 -0.1633) |
| OKLCH | oklch(32.34% 0.167 281.7) |
| XYZ | xyz(5.5772, 2.8202, 22.0758) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.13
Royal
#0C1793
ΔE00 3.47
Midnight Blue
#191970
ΔE00 4.31
Darkblue
#00008B
ΔE00 4.52
Navy
#000080
ΔE00 4.79
Deep Blue
#040273
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1684 #6C8416
analogous
#163584 #2E1684 #651684
triadic
#2E1684 #842E16 #16842E
tetradic
#2E1684 #841635 #6C8416 #168465
square
#2E1684 #841635 #6C8416 #168465
split-complementary
#2E1684 #846516 #358416
monochromatic
#09051B #1C0D50 #2E1684 #401FB8 #5B37DE
Accessibility & contrast
On white
13.43
#2E1684 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E1684 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1684
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1684 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1684 | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1684; /* rgb */ color: rgb(46, 22, 132); /* oklch */ color: oklch(32.3% 0.167 281.7);
Tailwind
colors: {
custom: {
50: '#7458a9',
500: '#2e1684',
950: '#000000',
},
}SCSS
$custom: #2e1684; $custom-light: #7458a9; $custom-dark: #000000;
JSON
{
"hex": "#2e1684",
"rgb": {
"r": 46,
"g": 22,
"b": 132
},
"hsl": {
"h": 253.091,
"s": 71.429,
"l": 30.196
},
"oklch": {
"l": 0.32343,
"c": 0.16682,
"h": 281.7
},
"luminance": 0.02821
}Semantic roles & 50–950 ramp
primary
#2E1684
secondary
#9EB83D
accent
#EE3AC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F