#3F1F76#3F1F76
#3F1F76 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.139 H 294.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F76 |
|---|---|
| RGB | rgb(63, 31, 118) |
| HSL | hsl(262, 58%, 29%) |
| HSV | hsv(262, 74%, 46%) |
| CMYK | cmyk(46.6%, 73.7%, 0%, 53.7%) |
| CIE-LAB | lab(21.37, 35.85, -44.25) |
| CIE-LCH | lch(21.37, 56.95, 309.02°) |
| OKLab | oklab(33.81% 0.058 -0.1267) |
| OKLCH | oklch(33.81% 0.139 294.6) |
| XYZ | xyz(5.8090, 3.3446, 17.4755) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.21
Indigo (survey)
#380282
ΔE00 5.28
Royal Purple (survey)
#4B006E
ΔE00 5.63
Midnight Blue
#191970
ΔE00 5.83
Royal
#0C1793
ΔE00 7.58
Dark Indigo
#1F0954
ΔE00 7.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F76 #56761F
analogous
#1F2B76 #3F1F76 #6B1F76
triadic
#3F1F76 #763F1F #1F763F
tetradic
#3F1F76 #761F2B #56761F #1F766B
square
#3F1F76 #761F2B #56761F #1F766B
split-complementary
#3F1F76 #766B1F #2B761F
monochromatic
#0D0618 #251246 #3F1F76 #592CA6 #7542CD
Accessibility & contrast
On white
12.58
#3F1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3F1F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F76
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F76 | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#2F3548
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f1f76; /* rgb */ color: rgb(63, 31, 118); /* oklch */ color: oklch(33.8% 0.139 294.6);
Tailwind
colors: {
custom: {
50: '#7a5e9e',
500: '#3f1f76',
950: '#000000',
},
}SCSS
$custom: #3f1f76; $custom-light: #7a5e9e; $custom-dark: #000000;
JSON
{
"hex": "#3f1f76",
"rgb": {
"r": 63,
"g": 31,
"b": 118
},
"hsl": {
"h": 262.069,
"s": 58.389,
"l": 29.216
},
"oklch": {
"l": 0.33807,
"c": 0.13931,
"h": 294.6
},
"luminance": 0.03345
}Semantic roles & 50–950 ramp
primary
#3F1F76
secondary
#85AA47
accent
#E246A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E