#2E1B84#2E1B84
#2E1B84 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.162 H 281.0°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B84 |
|---|---|
| RGB | rgb(46, 27, 132) |
| HSL | hsl(251, 66%, 31%) |
| HSV | hsv(251, 80%, 52%) |
| CMYK | cmyk(65.2%, 79.5%, 0%, 48.2%) |
| CIE-LAB | lab(20.16, 39.63, -55.20) |
| CIE-LCH | lch(20.16, 67.95, 305.67°) |
| OKLab | oklab(32.94% 0.031 -0.1593) |
| OKLCH | oklch(32.94% 0.162 281) |
| XYZ | xyz(5.6822, 3.0302, 22.1108) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.50
Midnight Blue
#191970
ΔE00 4.04
Indigo (survey)
#380282
ΔE00 4.09
Darkblue
#00008B
ΔE00 5.27
Navy
#000080
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B84 #71841B
analogous
#1B3C84 #2E1B84 #621B84
triadic
#2E1B84 #842E1B #1B842E
tetradic
#2E1B84 #841B3C #71841B #1B8462
square
#2E1B84 #841B3C #71841B #1B8462
split-complementary
#2E1B84 #84621B #3C841B
monochromatic
#0B061E #1C1151 #2E1B84 #4025B7 #5D41D8
Accessibility & contrast
On white
13.07
#2E1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2E1B84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B84
13.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B84 | 1.00 | 13.07 | 1.61 | 13.07 |
| #FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1b84; /* rgb */ color: rgb(46, 27, 132); /* oklch */ color: oklch(32.9% 0.162 281.0);
Tailwind
colors: {
custom: {
50: '#735ba9',
500: '#2e1b84',
950: '#000000',
},
}SCSS
$custom: #2e1b84; $custom-light: #735ba9; $custom-dark: #000000;
JSON
{
"hex": "#2e1b84",
"rgb": {
"r": 46,
"g": 27,
"b": 132
},
"hsl": {
"h": 250.857,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.32938,
"c": 0.16228,
"h": 281
},
"luminance": 0.03031
}Semantic roles & 50–950 ramp
primary
#2E1B84
secondary
#A2B743
accent
#E93FCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F