#3F217F#3F217F
#3F217F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.148 H 291.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #3F217F |
|---|---|
| RGB | rgb(63, 33, 127) |
| HSL | hsl(259, 59%, 31%) |
| HSV | hsv(259, 74%, 50%) |
| CMYK | cmyk(50.4%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(22.57, 37.41, -48.02) |
| CIE-LCH | lch(22.57, 60.87, 307.91°) |
| OKLab | oklab(34.91% 0.054 -0.1378) |
| OKLCH | oklch(34.91% 0.148 291.4) |
| XYZ | xyz(6.4234, 3.6765, 20.4458) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.04
Indigo
#4B0082
ΔE00 5.21
Midnight Blue
#191970
ΔE00 5.84
Royal
#0C1793
ΔE00 6.50
Royal Purple (survey)
#4B006E
ΔE00 6.54
Indigo Blue
#3A18B1
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F217F #617F21
analogous
#21327F #3F217F #6E217F
triadic
#3F217F #7F3F21 #217F3F
tetradic
#3F217F #7F2132 #617F21 #217F6E
square
#3F217F #7F2132 #617F21 #217F6E
split-complementary
#3F217F #7F6E21 #327F21
monochromatic
#0F081E #27144E #3F217F #572EB0 #754AD0
Accessibility & contrast
On white
12.10
#3F217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3F217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F217F
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F217F | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#2A394E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3f217f; /* rgb */ color: rgb(63, 33, 127); /* oklch */ color: oklch(34.9% 0.148 291.4);
Tailwind
colors: {
custom: {
50: '#7b5fa5',
500: '#3f217f',
950: '#000000',
},
}SCSS
$custom: #3f217f; $custom-light: #7b5fa5; $custom-dark: #000000;
JSON
{
"hex": "#3f217f",
"rgb": {
"r": 63,
"g": 33,
"b": 127
},
"hsl": {
"h": 259.149,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.34908,
"c": 0.14798,
"h": 291.4
},
"luminance": 0.03677
}Semantic roles & 50–950 ramp
primary
#3F217F
secondary
#91B24A
accent
#E246B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F