#3E1F7F#3E1F7F
#3E1F7F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.150 H 291.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F7F |
|---|---|
| RGB | rgb(62, 31, 127) |
| HSL | hsl(259, 61%, 31%) |
| HSV | hsv(259, 76%, 50%) |
| CMYK | cmyk(51.2%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(22.07, 38.30, -48.84) |
| CIE-LCH | lch(22.07, 62.07, 308.10°) |
| OKLab | oklab(34.53% 0.0543 -0.1402) |
| OKLCH | oklch(34.53% 0.15 291.2) |
| XYZ | xyz(6.3063, 3.5362, 20.4248) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.57
Indigo
#4B0082
ΔE00 4.87
Midnight Blue
#191970
ΔE00 5.65
Royal
#0C1793
ΔE00 6.23
Royal Purple (survey)
#4B006E
ΔE00 6.30
Indigo Blue
#3A18B1
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F7F #607F1F
analogous
#1F307F #3E1F7F #6E1F7F
triadic
#3E1F7F #7F3E1F #1F7F3E
tetradic
#3E1F7F #7F1F30 #607F1F #1F7F6E
square
#3E1F7F #7F1F30 #607F1F #1F7F6E
split-complementary
#3E1F7F #7F6E1F #307F1F
monochromatic
#0E071D #26134E #3E1F7F #562BB0 #7346D2
Accessibility & contrast
On white
12.30
#3E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3E1F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F7F
12.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F7F | 1.00 | 12.30 | 1.71 | 12.30 |
| #FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#28394D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3e1f7f; /* rgb */ color: rgb(62, 31, 127); /* oklch */ color: oklch(34.5% 0.150 291.2);
Tailwind
colors: {
custom: {
50: '#7a5ea5',
500: '#3e1f7f',
950: '#000000',
},
}SCSS
$custom: #3e1f7f; $custom-light: #7a5ea5; $custom-dark: #000000;
JSON
{
"hex": "#3e1f7f",
"rgb": {
"r": 62,
"g": 31,
"b": 127
},
"hsl": {
"h": 259.375,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.34529,
"c": 0.15035,
"h": 291.2
},
"luminance": 0.03536
}Semantic roles & 50–950 ramp
primary
#3E1F7F
secondary
#90B248
accent
#E444B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F