#2E1D7D#2E1D7D
#2E1D7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.151 H 282.0°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1D7D |
|---|---|
| RGB | rgb(46, 29, 125) |
| HSL | hsl(251, 62%, 30%) |
| HSV | hsv(251, 77%, 49%) |
| CMYK | cmyk(63.2%, 76.8%, 0%, 51%) |
| CIE-LAB | lab(19.80, 36.30, -51.37) |
| CIE-LCH | lch(19.80, 62.90, 305.25°) |
| OKLab | oklab(32.46% 0.0315 -0.1481) |
| OKLCH | oklch(32.46% 0.151 282) |
| XYZ | xyz(5.2666, 2.9399, 19.6880) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.28
Royal
#0C1793
ΔE00 4.45
Indigo (survey)
#380282
ΔE00 4.70
Dark Royal Blue
#02066F
ΔE00 5.91
Darkblue
#00008B
ΔE00 6.07
Navy
#000080
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1D7D #6C7D1D
analogous
#1D3C7D #2E1D7D #5E1D7D
triadic
#2E1D7D #7D2E1D #1D7D2E
tetradic
#2E1D7D #7D1D3C #6C7D1D #1D7D5E
square
#2E1D7D #7D1D3C #6C7D1D #1D7D5E
split-complementary
#2E1D7D #7D5E1D #3C7D1D
monochromatic
#09061A #1C114B #2E1D7D #4029AF #5B41D3
Accessibility & contrast
On white
13.22
#2E1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E1D7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1D7D
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1D7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1D7D | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1d7d; /* rgb */ color: rgb(46, 29, 125); /* oklch */ color: oklch(32.5% 0.151 282.0);
Tailwind
colors: {
custom: {
50: '#725ba4',
500: '#2e1d7d',
950: '#000000',
},
}SCSS
$custom: #2e1d7d; $custom-light: #725ba4; $custom-dark: #000000;
JSON
{
"hex": "#2e1d7d",
"rgb": {
"r": 46,
"g": 29,
"b": 125
},
"hsl": {
"h": 250.625,
"s": 62.338,
"l": 30.196
},
"oklch": {
"l": 0.3246,
"c": 0.15143,
"h": 282
},
"luminance": 0.0294
}Semantic roles & 50–950 ramp
primary
#2E1D7D
secondary
#9EB145
accent
#E542C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F