#3F217E#3F217E
#3F217E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.147 H 291.7°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #3F217E |
|---|---|
| RGB | rgb(63, 33, 126) |
| HSL | hsl(259, 58%, 31%) |
| HSV | hsv(259, 74%, 49%) |
| CMYK | cmyk(50%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(22.48, 37.11, -47.54) |
| CIE-LCH | lch(22.48, 60.31, 307.98°) |
| OKLab | oklab(34.82% 0.0542 -0.1363) |
| OKLCH | oklch(34.82% 0.147 291.7) |
| XYZ | xyz(6.3586, 3.6506, 20.1042) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.09
Indigo
#4B0082
ΔE00 5.23
Midnight Blue
#191970
ΔE00 5.82
Royal Purple (survey)
#4B006E
ΔE00 6.47
Royal
#0C1793
ΔE00 6.62
Darkslateblue
#483D8B
ΔE00 7.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F217E #607E21
analogous
#21317E #3F217E #6D217E
triadic
#3F217E #7E3F21 #217E3F
tetradic
#3F217E #7E2131 #607E21 #217E6D
square
#3F217E #7E2131 #607E21 #217E6D
split-complementary
#3F217E #7E6D21 #317E21
monochromatic
#0F081D #27144E #3F217E #572EAE #754AD0
Accessibility & contrast
On white
12.14
#3F217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3F217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F217E
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F217E | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#2B394D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3f217e; /* rgb */ color: rgb(63, 33, 126); /* oklch */ color: oklch(34.8% 0.147 291.7);
Tailwind
colors: {
custom: {
50: '#7b5fa4',
500: '#3f217e',
950: '#000000',
},
}SCSS
$custom: #3f217e; $custom-light: #7b5fa4; $custom-dark: #000000;
JSON
{
"hex": "#3f217e",
"rgb": {
"r": 63,
"g": 33,
"b": 126
},
"hsl": {
"h": 259.355,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.34815,
"c": 0.14674,
"h": 291.7
},
"luminance": 0.03651
}Semantic roles & 50–950 ramp
primary
#3F217E
secondary
#90B14A
accent
#E246B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F