#3E1B7E#3E1B7E
#3E1B7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.154 H 292.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1B7E |
|---|---|
| RGB | rgb(62, 27, 126) |
| HSL | hsl(261, 65%, 30%) |
| HSV | hsv(261, 79%, 49%) |
| CMYK | cmyk(50.8%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(21.26, 40.05, -49.54) |
| CIE-LCH | lch(21.26, 63.71, 308.95°) |
| OKLab | oklab(33.93% 0.0582 -0.1422) |
| OKLCH | oklch(33.93% 0.154 292.2) |
| XYZ | xyz(6.1434, 3.3141, 20.0506) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.79
Indigo
#4B0082
ΔE00 4.12
Royal Purple (survey)
#4B006E
ΔE00 5.60
Midnight Blue
#191970
ΔE00 5.68
Royal
#0C1793
ΔE00 6.20
Darkblue
#00008B
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1B7E #5B7E1B
analogous
#1B2A7E #3E1B7E #6F1B7E
triadic
#3E1B7E #7E3E1B #1B7E3E
tetradic
#3E1B7E #7E1B2A #5B7E1B #1B7E6F
square
#3E1B7E #7E1B2A #5B7E1B #1B7E6F
split-complementary
#3E1B7E #7E6F1B #2A7E1B
monochromatic
#0C0519 #25104C #3E1B7E #5726B0 #733ED6
Accessibility & contrast
On white
12.63
#3E1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3E1B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1B7E
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1B7E | 1.00 | 12.63 | 1.66 | 12.63 |
| #FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#29364B
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3e1b7e; /* rgb */ color: rgb(62, 27, 126); /* oklch */ color: oklch(33.9% 0.154 292.2);
Tailwind
colors: {
custom: {
50: '#7b5ca4',
500: '#3e1b7e',
950: '#000000',
},
}SCSS
$custom: #3e1b7e; $custom-light: #7b5ca4; $custom-dark: #000000;
JSON
{
"hex": "#3e1b7e",
"rgb": {
"r": 62,
"g": 27,
"b": 126
},
"hsl": {
"h": 261.212,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.33927,
"c": 0.15365,
"h": 292.2
},
"luminance": 0.03314
}Semantic roles & 50–950 ramp
primary
#3E1B7E
secondary
#8BB243
accent
#E840AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F