#3F1886#3F1886
#3F1886 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.166 H 291.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1886 |
|---|---|
| RGB | rgb(63, 24, 134) |
| HSL | hsl(261, 70%, 31%) |
| HSV | hsv(261, 82%, 53%) |
| CMYK | cmyk(53%, 82.1%, 0%, 47.5%) |
| CIE-LAB | lab(21.69, 43.85, -53.88) |
| CIE-LCH | lch(21.69, 69.47, 309.14°) |
| OKLab | oklab(34.5% 0.0596 -0.1548) |
| OKLCH | oklch(34.5% 0.166 291) |
| XYZ | xyz(6.6784, 3.4310, 22.8600) |
| Luminance | 0.0343 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.12
Indigo
#4B0082
ΔE00 3.61
Royal
#0C1793
ΔE00 5.52
Royal Purple (survey)
#4B006E
ΔE00 5.98
Indigo Blue
#3A18B1
ΔE00 6.18
Midnight Blue
#191970
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1886 #5F8618
analogous
#182886 #3F1886 #761886
triadic
#3F1886 #863F18 #18863F
tetradic
#3F1886 #861828 #5F8618 #188676
square
#3F1886 #861828 #5F8618 #188676
split-complementary
#3F1886 #867618 #288618
monochromatic
#0E051E #270F52 #3F1886 #5721BA #753CDC
Accessibility & contrast
On white
12.45
#3F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3F1886 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1886
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1886 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1886 | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#26384F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3f1886; /* rgb */ color: rgb(63, 24, 134); /* oklch */ color: oklch(34.5% 0.166 291.0);
Tailwind
colors: {
custom: {
50: '#7d5baa',
500: '#3f1886',
950: '#000000',
},
}SCSS
$custom: #3f1886; $custom-light: #7d5baa; $custom-dark: #000000;
JSON
{
"hex": "#3f1886",
"rgb": {
"r": 63,
"g": 24,
"b": 134
},
"hsl": {
"h": 261.273,
"s": 69.62,
"l": 30.98
},
"oklch": {
"l": 0.34498,
"c": 0.16592,
"h": 291
},
"luminance": 0.03431
}Semantic roles & 50–950 ramp
primary
#3F1886
secondary
#8FBA40
accent
#EC3BAE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F