#3E1B76#3E1B76
#3E1B76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.144 H 294.8°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1B76 |
|---|---|
| RGB | rgb(62, 27, 118) |
| HSL | hsl(263, 63%, 28%) |
| HSV | hsv(263, 77%, 46%) |
| CMYK | cmyk(47.5%, 77.1%, 0%, 53.7%) |
| CIE-LAB | lab(20.50, 37.77, -45.68) |
| CIE-LCH | lch(20.50, 59.28, 309.59°) |
| OKLab | oklab(33.16% 0.0604 -0.1309) |
| OKLCH | oklch(33.16% 0.144 294.8) |
| XYZ | xyz(5.6477, 3.1159, 17.4399) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.45
Indigo
#4B0082
ΔE00 4.50
Royal Purple (survey)
#4B006E
ΔE00 5.01
Midnight Blue
#191970
ΔE00 5.67
Royal
#0C1793
ΔE00 7.26
Dark Indigo
#1F0954
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1B76 #53761B
analogous
#1B2576 #3E1B76 #6B1B76
triadic
#3E1B76 #763E1B #1B763E
tetradic
#3E1B76 #761B25 #53761B #1B766B
square
#3E1B76 #761B25 #53761B #1B766B
split-complementary
#3E1B76 #766B1B #25761B
monochromatic
#0D0619 #241044 #3E1B76 #5826A8 #743AD2
Accessibility & contrast
On white
12.94
#3E1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3E1B76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1B76
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1B76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1B76 | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#2E3347
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3e1b76; /* rgb */ color: rgb(62, 27, 118); /* oklch */ color: oklch(33.2% 0.144 294.8);
Tailwind
colors: {
custom: {
50: '#795b9e',
500: '#3e1b76',
950: '#000000',
},
}SCSS
$custom: #3e1b76; $custom-light: #795b9e; $custom-dark: #000000;
JSON
{
"hex": "#3e1b76",
"rgb": {
"r": 62,
"g": 27,
"b": 118
},
"hsl": {
"h": 263.077,
"s": 62.759,
"l": 28.431
},
"oklch": {
"l": 0.33161,
"c": 0.14413,
"h": 294.8
},
"luminance": 0.03116
}Semantic roles & 50–950 ramp
primary
#3E1B76
secondary
#82AA42
accent
#E642A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E