#3F1E7E#3F1E7E
#3F1E7E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.150 H 292.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1E7E |
|---|---|
| RGB | rgb(63, 30, 126) |
| HSL | hsl(261, 62%, 31%) |
| HSV | hsv(261, 76%, 49%) |
| CMYK | cmyk(50%, 76.2%, 0%, 50.6%) |
| CIE-LAB | lab(21.91, 38.71, -48.47) |
| CIE-LCH | lch(21.91, 62.03, 308.61°) |
| OKLab | oklab(34.41% 0.0571 -0.139) |
| OKLCH | oklch(34.41% 0.15 292.3) |
| XYZ | xyz(6.2790, 3.4914, 20.0777) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.43
Indigo
#4B0082
ΔE00 4.59
Midnight Blue
#191970
ΔE00 5.79
Royal Purple (survey)
#4B006E
ΔE00 5.94
Royal
#0C1793
ΔE00 6.45
Indigo Blue
#3A18B1
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1E7E #5D7E1E
analogous
#1E2D7E #3F1E7E #6F1E7E
triadic
#3F1E7E #7E3F1E #1E7E3F
tetradic
#3F1E7E #7E1E2D #5D7E1E #1E7E6F
square
#3F1E7E #7E1E2D #5D7E1E #1E7E6F
split-complementary
#3F1E7E #7E6F1E #2D7E1E
monochromatic
#0E061B #26124D #3F1E7E #582AAF #7544D2
Accessibility & contrast
On white
12.36
#3F1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#3F1E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1E7E
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1E7E | 1.00 | 12.36 | 1.70 | 12.36 |
| #FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#2B384C
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3f1e7e; /* rgb */ color: rgb(63, 30, 126); /* oklch */ color: oklch(34.4% 0.150 292.3);
Tailwind
colors: {
custom: {
50: '#7b5da4',
500: '#3f1e7e',
950: '#000000',
},
}SCSS
$custom: #3f1e7e; $custom-light: #7b5da4; $custom-dark: #000000;
JSON
{
"hex": "#3f1e7e",
"rgb": {
"r": 63,
"g": 30,
"b": 126
},
"hsl": {
"h": 260.625,
"s": 61.538,
"l": 30.588
},
"oklch": {
"l": 0.34413,
"c": 0.15031,
"h": 292.3
},
"luminance": 0.03492
}Semantic roles & 50–950 ramp
primary
#3F1E7E
secondary
#8DB147
accent
#E543AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F