#2E1D6F#2E1D6F
#2E1D6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.133 H 285.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1D6F |
|---|---|
| RGB | rgb(46, 29, 111) |
| HSL | hsl(252, 59%, 27%) |
| HSV | hsv(252, 74%, 44%) |
| CMYK | cmyk(58.6%, 73.9%, 0%, 56.5%) |
| CIE-LAB | lab(18.40, 31.74, -44.69) |
| CIE-LCH | lch(18.40, 54.81, 305.39°) |
| OKLab | oklab(31.04% 0.0347 -0.1286) |
| OKLCH | oklch(31.04% 0.133 285.1) |
| XYZ | xyz(4.4345, 2.6070, 15.3054) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.99
Dark Indigo
#1F0954
ΔE00 5.86
Indigo (survey)
#380282
ΔE00 5.89
Dark Royal Blue
#02066F
ΔE00 6.10
Darkblue (survey)
#030764
ΔE00 6.15
Deep Blue
#040273
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1D6F #5E6F1D
analogous
#1D356F #2E1D6F #571D6F
triadic
#2E1D6F #6F2E1D #1D6F2E
tetradic
#2E1D6F #6F1D35 #5E6F1D #1D6F57
square
#2E1D6F #6F1D35 #5E6F1D #1D6F57
split-complementary
#2E1D6F #6F571D #356F1D
monochromatic
#0A0618 #1A103E #2E1D6F #422AA0 #593BCC
Accessibility & contrast
On white
13.80
#2E1D6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2E1D6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1D6F
13.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1D6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1D6F | 1.00 | 13.80 | 1.52 | 13.80 |
| #FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#0F3343
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e1d6f; /* rgb */ color: rgb(46, 29, 111); /* oklch */ color: oklch(31.0% 0.133 285.1);
Tailwind
colors: {
custom: {
50: '#6f5b99',
500: '#2e1d6f',
950: '#000000',
},
}SCSS
$custom: #2e1d6f; $custom-light: #6f5b99; $custom-dark: #000000;
JSON
{
"hex": "#2e1d6f",
"rgb": {
"r": 46,
"g": 29,
"b": 111
},
"hsl": {
"h": 252.439,
"s": 58.571,
"l": 27.451
},
"oklch": {
"l": 0.31035,
"c": 0.13317,
"h": 285.1
},
"luminance": 0.02607
}Semantic roles & 50–950 ramp
primary
#2E1D6F
secondary
#90A344
accent
#E246C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E