#3E1F76#3E1F76
#3E1F76 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.139 H 293.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F76 |
|---|---|
| RGB | rgb(62, 31, 118) |
| HSL | hsl(261, 58%, 29%) |
| HSV | hsv(261, 74%, 46%) |
| CMYK | cmyk(47.5%, 73.7%, 0%, 53.7%) |
| CIE-LAB | lab(21.25, 35.66, -44.46) |
| CIE-LCH | lch(21.25, 56.99, 308.74°) |
| OKLab | oklab(33.69% 0.0564 -0.1273) |
| OKLCH | oklch(33.69% 0.139 293.9) |
| XYZ | xyz(5.7457, 3.3119, 17.4726) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.25
Indigo
#4B0082
ΔE00 5.29
Midnight Blue
#191970
ΔE00 5.64
Royal Purple (survey)
#4B006E
ΔE00 5.76
Royal
#0C1793
ΔE00 7.43
Dark Indigo
#1F0954
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F76 #57761F
analogous
#1F2C76 #3E1F76 #6A1F76
triadic
#3E1F76 #763E1F #1F763E
tetradic
#3E1F76 #761F2C #57761F #1F766A
square
#3E1F76 #761F2C #57761F #1F766A
split-complementary
#3E1F76 #766A1F #2C761F
monochromatic
#0D0618 #251246 #3E1F76 #572CA6 #7442CD
Accessibility & contrast
On white
12.63
#3E1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3E1F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F76
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F76 | 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)
#003479
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#2E3548
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3e1f76; /* rgb */ color: rgb(62, 31, 118); /* oklch */ color: oklch(33.7% 0.139 293.9);
Tailwind
colors: {
custom: {
50: '#795d9e',
500: '#3e1f76',
950: '#000000',
},
}SCSS
$custom: #3e1f76; $custom-light: #795d9e; $custom-dark: #000000;
JSON
{
"hex": "#3e1f76",
"rgb": {
"r": 62,
"g": 31,
"b": 118
},
"hsl": {
"h": 261.379,
"s": 58.389,
"l": 29.216
},
"oklch": {
"l": 0.33692,
"c": 0.13924,
"h": 293.9
},
"luminance": 0.03312
}Semantic roles & 50–950 ramp
primary
#3E1F76
secondary
#87AA47
accent
#E246AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E