#2E1880#2E1880
#2E1880 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 282.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1880 |
|---|---|
| RGB | rgb(46, 24, 128) |
| HSL | hsl(253, 68%, 30%) |
| HSV | hsv(253, 81%, 50%) |
| CMYK | cmyk(64.1%, 81.3%, 0%, 49.8%) |
| CIE-LAB | lab(19.19, 39.91, -54.28) |
| CIE-LCH | lch(19.19, 67.37, 306.33°) |
| OKLab | oklab(32.13% 0.034 -0.1566) |
| OKLCH | oklch(32.13% 0.16 282.3) |
| XYZ | xyz(5.3484, 2.7922, 20.6750) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.52
Midnight Blue
#191970
ΔE00 3.76
Royal
#0C1793
ΔE00 3.90
Darkblue
#00008B
ΔE00 5.01
Navy
#000080
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1880 #6A8018
analogous
#183680 #2E1880 #621880
triadic
#2E1880 #802E18 #18802E
tetradic
#2E1880 #801836 #6A8018 #188062
square
#2E1880 #801836 #6A8018 #188062
split-complementary
#2E1880 #806218 #368018
monochromatic
#09051A #1B0E4C #2E1880 #4122B4 #5B39DA
Accessibility & contrast
On white
13.47
#2E1880 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E1880 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1880
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1880 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1880 | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1880; /* rgb */ color: rgb(46, 24, 128); /* oklch */ color: oklch(32.1% 0.160 282.3);
Tailwind
colors: {
custom: {
50: '#7359a6',
500: '#2e1880',
950: '#000000',
},
}SCSS
$custom: #2e1880; $custom-light: #7359a6; $custom-dark: #000000;
JSON
{
"hex": "#2e1880",
"rgb": {
"r": 46,
"g": 24,
"b": 128
},
"hsl": {
"h": 252.692,
"s": 68.421,
"l": 29.804
},
"oklch": {
"l": 0.32129,
"c": 0.16022,
"h": 282.3
},
"luminance": 0.02793
}Semantic roles & 50–950 ramp
primary
#2E1880
secondary
#9CB440
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F