#3F217A#3F217A
#3F217A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.142 H 292.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).
Color values
| HEX | #3F217A |
|---|---|
| RGB | rgb(63, 33, 122) |
| HSL | hsl(260, 57%, 30%) |
| HSV | hsv(260, 73%, 48%) |
| CMYK | cmyk(48.4%, 73%, 0%, 52.2%) |
| CIE-LAB | lab(22.12, 35.93, -45.59) |
| CIE-LCH | lch(22.12, 58.04, 308.24°) |
| OKLab | oklab(34.45% 0.0551 -0.1306) |
| OKLCH | oklch(34.45% 0.142 292.9) |
| XYZ | xyz(6.1056, 3.5494, 18.7720) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.36
Indigo
#4B0082
ΔE00 5.39
Midnight Blue
#191970
ΔE00 5.79
Royal Purple (survey)
#4B006E
ΔE00 6.23
Royal
#0C1793
ΔE00 7.14
Darkslateblue
#483D8B
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F217A #5C7A21
analogous
#212F7A #3F217A #6B217A
triadic
#3F217A #7A3F21 #217A3F
tetradic
#3F217A #7A212F #5C7A21 #217A6B
square
#3F217A #7A212F #5C7A21 #217A6B
split-complementary
#3F217A #7A6B21 #2F7A21
monochromatic
#0D071A #26144A #3F217A #582EAA #7548CD
Accessibility & contrast
On white
12.28
#3F217A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3F217A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F217A
12.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F217A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F217A | 1.00 | 12.28 | 1.71 | 12.28 |
| #FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#2D384B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3f217a; /* rgb */ color: rgb(63, 33, 122); /* oklch */ color: oklch(34.4% 0.142 292.9);
Tailwind
colors: {
custom: {
50: '#7a5fa1',
500: '#3f217a',
950: '#000000',
},
}SCSS
$custom: #3f217a; $custom-light: #7a5fa1; $custom-dark: #000000;
JSON
{
"hex": "#3f217a",
"rgb": {
"r": 63,
"g": 33,
"b": 122
},
"hsl": {
"h": 260.225,
"s": 57.419,
"l": 30.392
},
"oklch": {
"l": 0.34449,
"c": 0.14175,
"h": 292.9
},
"luminance": 0.0355
}Semantic roles & 50–950 ramp
primary
#3F217A
secondary
#8CAD4A
accent
#E147AD
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F