#2E1885#2E1885
#2E1885 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.166 H 281.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1885 |
|---|---|
| RGB | rgb(46, 24, 133) |
| HSL | hsl(252, 69%, 31%) |
| HSV | hsv(252, 82%, 52%) |
| CMYK | cmyk(65.4%, 82%, 0%, 47.8%) |
| CIE-LAB | lab(19.75, 41.45, -56.52) |
| CIE-LCH | lch(19.75, 70.09, 306.26°) |
| OKLab | oklab(32.68% 0.0324 -0.1631) |
| OKLCH | oklch(32.68% 0.166 281.2) |
| XYZ | xyz(5.6857, 2.9271, 22.4511) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.35
Indigo (survey)
#380282
ΔE00 3.50
Midnight Blue
#191970
ΔE00 4.29
Darkblue
#00008B
ΔE00 4.75
Navy
#000080
ΔE00 5.08
Cobalt Blue
#030AA7
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1885 #6F8518
analogous
#183885 #2E1885 #641885
triadic
#2E1885 #852E18 #18852E
tetradic
#2E1885 #851838 #6F8518 #188564
square
#2E1885 #851838 #6F8518 #188564
split-complementary
#2E1885 #856418 #388518
monochromatic
#0A051D #1C0F51 #2E1885 #4021B9 #5C3CDC
Accessibility & contrast
On white
13.24
#2E1885 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E1885 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1885
13.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1885 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1885 | 1.00 | 13.24 | 1.59 | 13.24 |
| #FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1885; /* rgb */ color: rgb(46, 24, 133); /* oklch */ color: oklch(32.7% 0.166 281.2);
Tailwind
colors: {
custom: {
50: '#7459aa',
500: '#2e1885',
950: '#000000',
},
}SCSS
$custom: #2e1885; $custom-light: #7459aa; $custom-dark: #000000;
JSON
{
"hex": "#2e1885",
"rgb": {
"r": 46,
"g": 24,
"b": 133
},
"hsl": {
"h": 252.11,
"s": 69.427,
"l": 30.784
},
"oklch": {
"l": 0.32682,
"c": 0.16628,
"h": 281.2
},
"luminance": 0.02928
}Semantic roles & 50–950 ramp
primary
#2E1885
secondary
#A0B940
accent
#EC3CC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F