#2E1881#2E1881
#2E1881 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.161 H 282.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1881 |
|---|---|
| RGB | rgb(46, 24, 129) |
| HSL | hsl(253, 69%, 30%) |
| HSV | hsv(253, 81%, 51%) |
| CMYK | cmyk(64.3%, 81.4%, 0%, 49.4%) |
| CIE-LAB | lab(19.30, 40.22, -54.73) |
| CIE-LCH | lch(19.30, 67.92, 306.31°) |
| OKLab | oklab(32.24% 0.0337 -0.1579) |
| OKLCH | oklch(32.24% 0.161 282) |
| XYZ | xyz(5.4146, 2.8187, 21.0234) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.50
Royal
#0C1793
ΔE00 3.78
Midnight Blue
#191970
ΔE00 3.86
Darkblue
#00008B
ΔE00 4.95
Navy
#000080
ΔE00 5.09
Deep Blue
#040273
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1881 #6B8118
analogous
#183781 #2E1881 #621881
triadic
#2E1881 #812E18 #18812E
tetradic
#2E1881 #811837 #6B8118 #188162
square
#2E1881 #811837 #6B8118 #188162
split-complementary
#2E1881 #816218 #378118
monochromatic
#09051A #1C0E4D #2E1881 #4022B5 #5B39DA
Accessibility & contrast
On white
13.43
#2E1881 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E1881 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1881
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1881 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1881 | 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)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1881; /* rgb */ color: rgb(46, 24, 129); /* oklch */ color: oklch(32.2% 0.161 282.0);
Tailwind
colors: {
custom: {
50: '#7359a7',
500: '#2e1881',
950: '#000000',
},
}SCSS
$custom: #2e1881; $custom-light: #7359a7; $custom-dark: #000000;
JSON
{
"hex": "#2e1881",
"rgb": {
"r": 46,
"g": 24,
"b": 129
},
"hsl": {
"h": 252.571,
"s": 68.627,
"l": 30
},
"oklch": {
"l": 0.32239,
"c": 0.16144,
"h": 282
},
"luminance": 0.02819
}Semantic roles & 50–950 ramp
primary
#2E1881
secondary
#9DB540
accent
#EB3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F