#2E1B7B#2E1B7B
#2E1B7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.151 H 282.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B7B |
|---|---|
| RGB | rgb(46, 27, 123) |
| HSL | hsl(252, 64%, 29%) |
| HSV | hsv(252, 78%, 48%) |
| CMYK | cmyk(62.6%, 78%, 0%, 51.8%) |
| CIE-LAB | lab(19.20, 36.77, -51.08) |
| CIE-LCH | lch(19.20, 62.94, 305.75°) |
| OKLab | oklab(31.97% 0.0335 -0.1473) |
| OKLCH | oklch(31.97% 0.151 282.8) |
| XYZ | xyz(5.0927, 2.7944, 19.0061) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.16
Indigo (survey)
#380282
ΔE00 4.35
Royal
#0C1793
ΔE00 4.62
Dark Royal Blue
#02066F
ΔE00 5.55
Deep Blue
#040273
ΔE00 5.75
Navy
#000080
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B7B #687B1B
analogous
#1B387B #2E1B7B #5E1B7B
triadic
#2E1B7B #7B2E1B #1B7B2E
tetradic
#2E1B7B #7B1B38 #687B1B #1B7B5E
square
#2E1B7B #7B1B38 #687B1B #1B7B5E
split-complementary
#2E1B7B #7B5E1B #387B1B
monochromatic
#090619 #1B1049 #2E1B7B #4126AD #5A3CD4
Accessibility & contrast
On white
13.47
#2E1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E1B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B7B
13.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B7B | 1.00 | 13.47 | 1.56 | 13.47 |
| #FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1b7b; /* rgb */ color: rgb(46, 27, 123); /* oklch */ color: oklch(32.0% 0.151 282.8);
Tailwind
colors: {
custom: {
50: '#715aa2',
500: '#2e1b7b',
950: '#000000',
},
}SCSS
$custom: #2e1b7b; $custom-light: #715aa2; $custom-dark: #000000;
JSON
{
"hex": "#2e1b7b",
"rgb": {
"r": 46,
"g": 27,
"b": 123
},
"hsl": {
"h": 251.875,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.31974,
"c": 0.15102,
"h": 282.8
},
"luminance": 0.02795
}Semantic roles & 50–950 ramp
primary
#2E1B7B
secondary
#9AAF43
accent
#E741C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F