#3E1785#3E1785
#3E1785 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.166 H 290.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1785 |
|---|---|
| RGB | rgb(62, 23, 133) |
| HSL | hsl(261, 71%, 31%) |
| HSV | hsv(261, 83%, 52%) |
| CMYK | cmyk(53.4%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(21.32, 43.87, -53.87) |
| CIE-LCH | lch(21.32, 69.47, 309.16°) |
| OKLab | oklab(34.18% 0.059 -0.1548) |
| OKLCH | oklch(34.18% 0.166 290.9) |
| XYZ | xyz(6.5254, 3.3301, 22.4847) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.90
Indigo
#4B0082
ΔE00 3.54
Royal
#0C1793
ΔE00 5.45
Royal Purple (survey)
#4B006E
ΔE00 5.87
Midnight Blue
#191970
ΔE00 6.13
Indigo Blue
#3A18B1
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1785 #5E8517
analogous
#172785 #3E1785 #751785
triadic
#3E1785 #853E17 #17853E
tetradic
#3E1785 #851727 #5E8517 #178575
square
#3E1785 #851727 #5E8517 #178575
split-complementary
#3E1785 #857517 #278517
monochromatic
#0D051D #260E51 #3E1785 #5620B9 #733ADD
Accessibility & contrast
On white
12.61
#3E1785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3E1785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1785
12.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1785 | 1.00 | 12.61 | 1.67 | 12.61 |
| #FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#24374F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3e1785; /* rgb */ color: rgb(62, 23, 133); /* oklch */ color: oklch(34.2% 0.166 290.9);
Tailwind
colors: {
custom: {
50: '#7c5aaa',
500: '#3e1785',
950: '#000000',
},
}SCSS
$custom: #3e1785; $custom-light: #7c5aaa; $custom-dark: #000000;
JSON
{
"hex": "#3e1785",
"rgb": {
"r": 62,
"g": 23,
"b": 133
},
"hsl": {
"h": 261.273,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.34181,
"c": 0.16571,
"h": 290.9
},
"luminance": 0.0333
}Semantic roles & 50–950 ramp
primary
#3E1785
secondary
#8EB93F
accent
#ED3BAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F