#3F1F97#3F1F97
#3F1F97 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.179 H 285.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F97 |
|---|---|
| RGB | rgb(63, 31, 151) |
| HSL | hsl(256, 66%, 36%) |
| HSV | hsv(256, 79%, 59%) |
| CMYK | cmyk(58.3%, 79.5%, 0%, 40.8%) |
| CIE-LAB | lab(24.55, 45.48, -59.75) |
| CIE-LCH | lch(24.55, 75.09, 307.28°) |
| OKLab | oklab(37% 0.0491 -0.1721) |
| OKLCH | oklch(37% 0.179 285.9) |
| XYZ | xyz(8.1241, 4.2706, 29.6684) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.69
Royal
#0C1793
ΔE00 4.99
Indigo (survey)
#380282
ΔE00 5.27
Ultramarine
#2000B1
ΔE00 5.49
Cobalt Blue
#030AA7
ΔE00 5.54
Indigo
#4B0082
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F97 #77971F
analogous
#1F3B97 #3F1F97 #7B1F97
triadic
#3F1F97 #973F1F #1F973F
tetradic
#3F1F97 #971F3B #77971F #1F977B
square
#3F1F97 #971F3B #77971F #1F977B
split-complementary
#3F1F97 #977B1F #3B971F
monochromatic
#150A31 #2A1564 #3F1F97 #5429CA #7954DC
Accessibility & contrast
On white
11.33
#3F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#3F1F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F97
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F97 | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#12425B
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f1f97; /* rgb */ color: rgb(63, 31, 151); /* oklch */ color: oklch(37.0% 0.179 285.9);
Tailwind
colors: {
custom: {
50: '#7f5fb7',
500: '#3f1f97',
950: '#000000',
},
}SCSS
$custom: #3f1f97; $custom-light: #7f5fb7; $custom-dark: #000000;
JSON
{
"hex": "#3f1f97",
"rgb": {
"r": 63,
"g": 31,
"b": 151
},
"hsl": {
"h": 256,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.37005,
"c": 0.17897,
"h": 285.9
},
"luminance": 0.04271
}Semantic roles & 50–950 ramp
primary
#3F1F97
secondary
#A2BF52
accent
#E93FBC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980