#2E1B86#2E1B86
#2E1B86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.165 H 280.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B86 |
|---|---|
| RGB | rgb(46, 27, 134) |
| HSL | hsl(251, 66%, 32%) |
| HSV | hsv(251, 80%, 53%) |
| CMYK | cmyk(65.7%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.38, 40.26, -56.10) |
| CIE-LCH | lch(20.38, 69.05, 305.66°) |
| OKLab | oklab(33.16% 0.0304 -0.1619) |
| OKLCH | oklch(33.16% 0.165 280.6) |
| XYZ | xyz(5.8204, 3.0855, 22.8385) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.30
Indigo (survey)
#380282
ΔE00 4.10
Midnight Blue
#191970
ΔE00 4.27
Darkblue
#00008B
ΔE00 5.19
Cobalt Blue
#030AA7
ΔE00 5.48
Navy
#000080
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B86 #73861B
analogous
#1B3E86 #2E1B86 #641B86
triadic
#2E1B86 #862E1B #1B862E
tetradic
#2E1B86 #861B3E #73861B #1B8664
square
#2E1B86 #861B3E #73861B #1B8664
split-complementary
#2E1B86 #86641B #3E861B
monochromatic
#0B0620 #1D1153 #2E1B86 #3F25B9 #5D42D9
Accessibility & contrast
On white
12.99
#2E1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2E1B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B86
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B86 | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1b86; /* rgb */ color: rgb(46, 27, 134); /* oklch */ color: oklch(33.2% 0.165 280.6);
Tailwind
colors: {
custom: {
50: '#745baa',
500: '#2e1b86',
950: '#000000',
},
}SCSS
$custom: #2e1b86; $custom-light: #745baa; $custom-dark: #000000;
JSON
{
"hex": "#2e1b86",
"rgb": {
"r": 46,
"g": 27,
"b": 134
},
"hsl": {
"h": 250.654,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.33156,
"c": 0.16474,
"h": 280.6
},
"luminance": 0.03086
}Semantic roles & 50–950 ramp
primary
#2E1B86
secondary
#A4B944
accent
#E93ECB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F