#3F217C#3F217C
#3F217C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.144 H 292.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #3F217C |
|---|---|
| RGB | rgb(63, 33, 124) |
| HSL | hsl(260, 58%, 31%) |
| HSV | hsv(260, 73%, 49%) |
| CMYK | cmyk(49.2%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(22.30, 36.52, -46.57) |
| CIE-LCH | lch(22.30, 59.18, 308.10°) |
| OKLab | oklab(34.63% 0.0547 -0.1335) |
| OKLCH | oklch(34.63% 0.144 292.3) |
| XYZ | xyz(6.2308, 3.5995, 19.4313) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.21
Indigo
#4B0082
ΔE00 5.30
Midnight Blue
#191970
ΔE00 5.79
Royal Purple (survey)
#4B006E
ΔE00 6.34
Royal
#0C1793
ΔE00 6.87
Darkslateblue
#483D8B
ΔE00 7.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F217C #5E7C21
analogous
#21307C #3F217C #6C217C
triadic
#3F217C #7C3F21 #217C3F
tetradic
#3F217C #7C2130 #5E7C21 #217C6C
square
#3F217C #7C2130 #5E7C21 #217C6C
split-complementary
#3F217C #7C6C21 #307C21
monochromatic
#0E071B #26144C #3F217C #582EAC #7549CF
Accessibility & contrast
On white
12.21
#3F217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3F217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F217C
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F217C | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#2C384C
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3f217c; /* rgb */ color: rgb(63, 33, 124); /* oklch */ color: oklch(34.6% 0.144 292.3);
Tailwind
colors: {
custom: {
50: '#7a5fa3',
500: '#3f217c',
950: '#000000',
},
}SCSS
$custom: #3f217c; $custom-light: #7a5fa3; $custom-dark: #000000;
JSON
{
"hex": "#3f217c",
"rgb": {
"r": 63,
"g": 33,
"b": 124
},
"hsl": {
"h": 259.78,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.34631,
"c": 0.14425,
"h": 292.3
},
"luminance": 0.036
}Semantic roles & 50–950 ramp
primary
#3F217C
secondary
#8EAF4A
accent
#E147AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F