#3E1F8F#3E1F8F
#3E1F8F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.170 H 287.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F8F |
|---|---|
| RGB | rgb(62, 31, 143) |
| HSL | hsl(257, 64%, 34%) |
| HSV | hsv(257, 78%, 56%) |
| CMYK | cmyk(56.6%, 78.3%, 0%, 43.9%) |
| CIE-LAB | lab(23.63, 43.01, -56.32) |
| CIE-LCH | lch(23.63, 70.87, 307.36°) |
| OKLab | oklab(36.09% 0.05 -0.1621) |
| OKLCH | oklch(36.09% 0.17 287.1) |
| XYZ | xyz(7.4330, 3.9869, 26.3592) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.70
Indigo Blue
#3A18B1
ΔE00 4.85
Royal
#0C1793
ΔE00 4.97
Indigo
#4B0082
ΔE00 5.26
Cobalt Blue
#030AA7
ΔE00 6.06
Ultramarine
#2000B1
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F8F #708F1F
analogous
#1F388F #3E1F8F #761F8F
triadic
#3E1F8F #8F3E1F #1F8F3E
tetradic
#3E1F8F #8F1F38 #708F1F #1F8F76
square
#3E1F8F #8F1F38 #708F1F #1F8F76
split-complementary
#3E1F8F #8F761F #388F1F
monochromatic
#12092A #28145D #3E1F8F #542AC1 #764FD9
Accessibility & contrast
On white
11.68
#3E1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#3E1F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F8F
11.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F8F | 1.00 | 11.68 | 1.80 | 11.68 |
| #FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#1A3F56
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3e1f8f; /* rgb */ color: rgb(62, 31, 143); /* oklch */ color: oklch(36.1% 0.170 287.1);
Tailwind
colors: {
custom: {
50: '#7d5fb1',
500: '#3e1f8f',
950: '#000000',
},
}SCSS
$custom: #3e1f8f; $custom-light: #7d5fb1; $custom-dark: #000000;
JSON
{
"hex": "#3e1f8f",
"rgb": {
"r": 62,
"g": 31,
"b": 143
},
"hsl": {
"h": 256.607,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.36094,
"c": 0.16964,
"h": 287.1
},
"luminance": 0.03987
}Semantic roles & 50–950 ramp
primary
#3E1F8F
secondary
#9DBC4E
accent
#E740B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980