#2E1B7A#2E1B7A
#2E1B7A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.150 H 283.0°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B7A |
|---|---|
| RGB | rgb(46, 27, 122) |
| HSL | hsl(252, 64%, 29%) |
| HSV | hsv(252, 78%, 48%) |
| CMYK | cmyk(62.3%, 77.9%, 0%, 52.2%) |
| CIE-LAB | lab(19.10, 36.45, -50.62) |
| CIE-LCH | lch(19.10, 62.38, 305.76°) |
| OKLab | oklab(31.87% 0.0337 -0.1459) |
| OKLCH | oklch(31.87% 0.15 283) |
| XYZ | xyz(5.0304, 2.7695, 18.6781) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.09
Indigo (survey)
#380282
ΔE00 4.41
Royal
#0C1793
ΔE00 4.76
Dark Royal Blue
#02066F
ΔE00 5.53
Deep Blue
#040273
ΔE00 5.75
Navy
#000080
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B7A #677A1B
analogous
#1B387A #2E1B7A #5E1B7A
triadic
#2E1B7A #7A2E1B #1B7A2E
tetradic
#2E1B7A #7A1B38 #677A1B #1B7A5E
square
#2E1B7A #7A1B38 #677A1B #1B7A5E
split-complementary
#2E1B7A #7A5E1B #387A1B
monochromatic
#090619 #1B1048 #2E1B7A #4126AC #5A3CD4
Accessibility & contrast
On white
13.51
#2E1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2E1B7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B7A
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B7A | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e1b7a; /* rgb */ color: rgb(46, 27, 122); /* oklch */ color: oklch(31.9% 0.150 283.0);
Tailwind
colors: {
custom: {
50: '#715aa1',
500: '#2e1b7a',
950: '#000000',
},
}SCSS
$custom: #2e1b7a; $custom-light: #715aa1; $custom-dark: #000000;
JSON
{
"hex": "#2e1b7a",
"rgb": {
"r": 46,
"g": 27,
"b": 122
},
"hsl": {
"h": 252,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.31868,
"c": 0.14976,
"h": 283
},
"luminance": 0.0277
}Semantic roles & 50–950 ramp
primary
#2E1B7A
secondary
#99AE43
accent
#E741C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F