#2E1D7F#2E1D7F
#2E1D7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.154 H 281.6°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1D7F |
|---|---|
| RGB | rgb(46, 29, 127) |
| HSL | hsl(250, 63%, 31%) |
| HSV | hsv(250, 77%, 50%) |
| CMYK | cmyk(63.8%, 77.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.01, 36.95, -52.30) |
| CIE-LCH | lch(20.01, 64.03, 305.24°) |
| OKLab | oklab(32.67% 0.031 -0.1508) |
| OKLCH | oklch(32.67% 0.154 281.6) |
| XYZ | xyz(5.3956, 2.9915, 20.3676) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.46
Royal
#0C1793
ΔE00 4.19
Indigo (survey)
#380282
ΔE00 4.62
Darkblue
#00008B
ΔE00 5.92
Dark Royal Blue
#02066F
ΔE00 5.97
Navy
#000080
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1D7F #6E7F1D
analogous
#1D3D7F #2E1D7F #5F1D7F
triadic
#2E1D7F #7F2E1D #1D7F2E
tetradic
#2E1D7F #7F1D3D #6E7F1D #1D7F5F
square
#2E1D7F #7F1D3D #6E7F1D #1D7F5F
split-complementary
#2E1D7F #7F5F1D #3D7F1D
monochromatic
#0A061B #1C124D #2E1D7F #4028B1 #5C42D4
Accessibility & contrast
On white
13.14
#2E1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2E1D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1D7F
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1D7F | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1d7f; /* rgb */ color: rgb(46, 29, 127); /* oklch */ color: oklch(32.7% 0.154 281.6);
Tailwind
colors: {
custom: {
50: '#725ba5',
500: '#2e1d7f',
950: '#000000',
},
}SCSS
$custom: #2e1d7f; $custom-light: #725ba5; $custom-dark: #000000;
JSON
{
"hex": "#2e1d7f",
"rgb": {
"r": 46,
"g": 29,
"b": 127
},
"hsl": {
"h": 250.408,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.3267,
"c": 0.15397,
"h": 281.6
},
"luminance": 0.02992
}Semantic roles & 50–950 ramp
primary
#2E1D7F
secondary
#9FB245
accent
#E642C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F