#2E1B85#2E1B85
#2E1B85 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.164 H 280.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1B85 |
|---|---|
| RGB | rgb(46, 27, 133) |
| HSL | hsl(251, 66%, 31%) |
| HSV | hsv(251, 80%, 52%) |
| CMYK | cmyk(65.4%, 79.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.27, 39.94, -55.65) |
| CIE-LCH | lch(20.27, 68.50, 305.67°) |
| OKLab | oklab(33.05% 0.0307 -0.1606) |
| OKLCH | oklch(33.05% 0.164 280.8) |
| XYZ | xyz(5.7509, 3.0577, 22.4729) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.40
Indigo (survey)
#380282
ΔE00 4.09
Midnight Blue
#191970
ΔE00 4.15
Darkblue
#00008B
ΔE00 5.23
Navy
#000080
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1B85 #72851B
analogous
#1B3D85 #2E1B85 #631B85
triadic
#2E1B85 #852E1B #1B852E
tetradic
#2E1B85 #851B3D #72851B #1B8563
square
#2E1B85 #851B3D #72851B #1B8563
split-complementary
#2E1B85 #85631B #3D851B
monochromatic
#0B061F #1C1152 #2E1B85 #4025B8 #5D42D9
Accessibility & contrast
On white
13.03
#2E1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2E1B85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1B85
13.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1B85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1B85 | 1.00 | 13.03 | 1.61 | 13.03 |
| #FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1b85; /* rgb */ color: rgb(46, 27, 133); /* oklch */ color: oklch(33.0% 0.164 280.8);
Tailwind
colors: {
custom: {
50: '#735baa',
500: '#2e1b85',
950: '#000000',
},
}SCSS
$custom: #2e1b85; $custom-light: #735baa; $custom-dark: #000000;
JSON
{
"hex": "#2e1b85",
"rgb": {
"r": 46,
"g": 27,
"b": 133
},
"hsl": {
"h": 250.755,
"s": 66.25,
"l": 31.373
},
"oklch": {
"l": 0.33047,
"c": 0.16351,
"h": 280.8
},
"luminance": 0.03058
}Semantic roles & 50–950 ramp
primary
#2E1B85
secondary
#A3B844
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F