#3F1A76#3F1A76
#3F1A76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.145 H 295.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1A76 |
|---|---|
| RGB | rgb(63, 26, 118) |
| HSL | hsl(264, 64%, 28%) |
| HSV | hsv(264, 78%, 46%) |
| CMYK | cmyk(46.6%, 78%, 0%, 53.7%) |
| CIE-LAB | lab(20.45, 38.45, -45.76) |
| CIE-LCH | lch(20.45, 59.77, 310.04°) |
| OKLab | oklab(33.16% 0.0629 -0.1311) |
| OKLCH | oklch(33.16% 0.145 295.6) |
| XYZ | xyz(5.6884, 3.1034, 17.4353) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.24
Indigo (survey)
#380282
ΔE00 4.32
Royal Purple (survey)
#4B006E
ΔE00 4.72
Midnight Blue
#191970
ΔE00 5.88
Dark Indigo
#1F0954
ΔE00 7.32
Royal
#0C1793
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1A76 #51761A
analogous
#1A2376 #3F1A76 #6D1A76
triadic
#3F1A76 #763F1A #1A763F
tetradic
#3F1A76 #761A23 #51761A #1A766D
square
#3F1A76 #761A23 #51761A #1A766D
split-complementary
#3F1A76 #766D1A #23761A
monochromatic
#0D0619 #240F44 #3F1A76 #5A25A8 #7637D3
Accessibility & contrast
On white
12.96
#3F1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3F1A76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1A76
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1A76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1A76 | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#303247
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3f1a76; /* rgb */ color: rgb(63, 26, 118); /* oklch */ color: oklch(33.2% 0.145 295.6);
Tailwind
colors: {
custom: {
50: '#7a5b9e',
500: '#3f1a76',
950: '#000000',
},
}SCSS
$custom: #3f1a76; $custom-light: #7a5b9e; $custom-dark: #000000;
JSON
{
"hex": "#3f1a76",
"rgb": {
"r": 63,
"g": 26,
"b": 118
},
"hsl": {
"h": 264.13,
"s": 63.889,
"l": 28.235
},
"oklch": {
"l": 0.33155,
"c": 0.14537,
"h": 295.6
},
"luminance": 0.03104
}Semantic roles & 50–950 ramp
primary
#3F1A76
secondary
#80AB41
accent
#E741A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E