#3E1F75#3E1F75
#3E1F75 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.138 H 294.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F75 |
|---|---|
| RGB | rgb(62, 31, 117) |
| HSL | hsl(262, 58%, 29%) |
| HSV | hsv(262, 74%, 46%) |
| CMYK | cmyk(47%, 73.5%, 0%, 54.1%) |
| CIE-LAB | lab(21.16, 35.37, -43.96) |
| CIE-LCH | lch(21.16, 56.42, 308.82°) |
| OKLab | oklab(33.6% 0.0566 -0.1259) |
| OKLCH | oklch(33.6% 0.138 294.2) |
| XYZ | xyz(5.6866, 3.2883, 17.1613) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.36
Indigo
#4B0082
ΔE00 5.37
Midnight Blue
#191970
ΔE00 5.67
Royal Purple (survey)
#4B006E
ΔE00 5.72
Dark Indigo
#1F0954
ΔE00 7.52
Royal
#0C1793
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F75 #56751F
analogous
#1F2B75 #3E1F75 #691F75
triadic
#3E1F75 #753E1F #1F753E
tetradic
#3E1F75 #751F2B #56751F #1F7569
square
#3E1F75 #751F2B #56751F #1F7569
split-complementary
#3E1F75 #75691F #2B751F
monochromatic
#0D0618 #241245 #3E1F75 #582CA5 #7442CD
Accessibility & contrast
On white
12.67
#3E1F75 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3E1F75 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F75
12.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F75 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F75 | 1.00 | 12.67 | 1.66 | 12.67 |
| #FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#2E3547
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3e1f75; /* rgb */ color: rgb(62, 31, 117); /* oklch */ color: oklch(33.6% 0.138 294.2);
Tailwind
colors: {
custom: {
50: '#795d9e',
500: '#3e1f75',
950: '#000000',
},
}SCSS
$custom: #3e1f75; $custom-light: #795d9e; $custom-dark: #000000;
JSON
{
"hex": "#3e1f75",
"rgb": {
"r": 62,
"g": 31,
"b": 117
},
"hsl": {
"h": 261.628,
"s": 58.108,
"l": 29.02
},
"oklch": {
"l": 0.33601,
"c": 0.138,
"h": 294.2
},
"luminance": 0.03288
}Semantic roles & 50–950 ramp
primary
#3E1F75
secondary
#86A947
accent
#E146AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E