#2E1D7C#2E1D7C
#2E1D7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.150 H 282.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1D7C |
|---|---|
| RGB | rgb(46, 29, 124) |
| HSL | hsl(251, 62%, 30%) |
| HSV | hsv(251, 77%, 49%) |
| CMYK | cmyk(62.9%, 76.6%, 0%, 51.4%) |
| CIE-LAB | lab(19.70, 35.98, -50.90) |
| CIE-LCH | lch(19.70, 62.33, 305.25°) |
| OKLab | oklab(32.36% 0.0317 -0.1468) |
| OKLCH | oklch(32.36% 0.15 282.2) |
| XYZ | xyz(5.2030, 2.9144, 19.3532) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.20
Royal
#0C1793
ΔE00 4.59
Indigo (survey)
#380282
ΔE00 4.75
Dark Royal Blue
#02066F
ΔE00 5.88
Navy
#000080
ΔE00 6.11
Deep Blue
#040273
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1D7C #6B7C1D
analogous
#1D3B7C #2E1D7C #5E1D7C
triadic
#2E1D7C #7C2E1D #1D7C2E
tetradic
#2E1D7C #7C1D3B #6B7C1D #1D7C5E
square
#2E1D7C #7C1D3B #6B7C1D #1D7C5E
split-complementary
#2E1D7C #7C5E1D #3B7C1D
monochromatic
#090619 #1C114A #2E1D7C #4029AE #5B41D3
Accessibility & contrast
On white
13.27
#2E1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2E1D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1D7C
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1D7C | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1d7c; /* rgb */ color: rgb(46, 29, 124); /* oklch */ color: oklch(32.4% 0.150 282.2);
Tailwind
colors: {
custom: {
50: '#715ba3',
500: '#2e1d7c',
950: '#000000',
},
}SCSS
$custom: #2e1d7c; $custom-light: #715ba3; $custom-dark: #000000;
JSON
{
"hex": "#2e1d7c",
"rgb": {
"r": 46,
"g": 29,
"b": 124
},
"hsl": {
"h": 250.737,
"s": 62.092,
"l": 30
},
"oklch": {
"l": 0.32356,
"c": 0.15015,
"h": 282.2
},
"luminance": 0.02915
}Semantic roles & 50–950 ramp
primary
#2E1D7C
secondary
#9DB045
accent
#E543C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F