#2E1D7E#2E1D7E
#2E1D7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.153 H 281.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1D7E |
|---|---|
| RGB | rgb(46, 29, 126) |
| HSL | hsl(251, 63%, 30%) |
| HSV | hsv(251, 77%, 49%) |
| CMYK | cmyk(63.5%, 77%, 0%, 50.6%) |
| CIE-LAB | lab(19.91, 36.63, -51.83) |
| CIE-LCH | lch(19.91, 63.47, 305.25°) |
| OKLab | oklab(32.57% 0.0312 -0.1495) |
| OKLCH | oklch(32.57% 0.153 281.8) |
| XYZ | xyz(5.3308, 2.9655, 20.0261) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.37
Royal
#0C1793
ΔE00 4.32
Indigo (survey)
#380282
ΔE00 4.66
Dark Royal Blue
#02066F
ΔE00 5.94
Darkblue
#00008B
ΔE00 5.99
Navy
#000080
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1D7E #6D7E1D
analogous
#1D3D7E #2E1D7E #5E1D7E
triadic
#2E1D7E #7E2E1D #1D7E2E
tetradic
#2E1D7E #7E1D3D #6D7E1D #1D7E5E
square
#2E1D7E #7E1D3D #6D7E1D #1D7E5E
split-complementary
#2E1D7E #7E5E1D #3D7E1D
monochromatic
#0A061B #1C124C #2E1D7E #4028B0 #5B42D3
Accessibility & contrast
On white
13.18
#2E1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E1D7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1D7E
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1D7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1D7E | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1d7e; /* rgb */ color: rgb(46, 29, 126); /* oklch */ color: oklch(32.6% 0.153 281.8);
Tailwind
colors: {
custom: {
50: '#725ba4',
500: '#2e1d7e',
950: '#000000',
},
}SCSS
$custom: #2e1d7e; $custom-light: #725ba4; $custom-dark: #000000;
JSON
{
"hex": "#2e1d7e",
"rgb": {
"r": 46,
"g": 29,
"b": 126
},
"hsl": {
"h": 250.515,
"s": 62.581,
"l": 30.392
},
"oklch": {
"l": 0.32565,
"c": 0.15271,
"h": 281.8
},
"luminance": 0.02966
}Semantic roles & 50–950 ramp
primary
#2E1D7E
secondary
#9FB145
accent
#E642C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F