#3F217D#3F217D
#3F217D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.145 H 292.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #3F217D |
|---|---|
| RGB | rgb(63, 33, 125) |
| HSL | hsl(260, 58%, 31%) |
| HSV | hsv(260, 74%, 49%) |
| CMYK | cmyk(49.6%, 73.6%, 0%, 51%) |
| CIE-LAB | lab(22.39, 36.81, -47.05) |
| CIE-LCH | lch(22.39, 59.74, 308.04°) |
| OKLab | oklab(34.72% 0.0545 -0.1349) |
| OKLCH | oklch(34.72% 0.145 292) |
| XYZ | xyz(6.2944, 3.6249, 19.7661) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.15
Indigo
#4B0082
ΔE00 5.26
Midnight Blue
#191970
ΔE00 5.80
Royal Purple (survey)
#4B006E
ΔE00 6.40
Royal
#0C1793
ΔE00 6.74
Darkslateblue
#483D8B
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F217D #5F7D21
analogous
#21317D #3F217D #6D217D
triadic
#3F217D #7D3F21 #217D3F
tetradic
#3F217D #7D2131 #5F7D21 #217D6D
square
#3F217D #7D2131 #5F7D21 #217D6D
split-complementary
#3F217D #7D6D21 #317D21
monochromatic
#0E071C #27144D #3F217D #572EAD #7549CF
Accessibility & contrast
On white
12.17
#3F217D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3F217D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F217D
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F217D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F217D | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#2B394C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3f217d; /* rgb */ color: rgb(63, 33, 125); /* oklch */ color: oklch(34.7% 0.145 292.0);
Tailwind
colors: {
custom: {
50: '#7b5fa3',
500: '#3f217d',
950: '#000000',
},
}SCSS
$custom: #3f217d; $custom-light: #7b5fa3; $custom-dark: #000000;
JSON
{
"hex": "#3f217d",
"rgb": {
"r": 63,
"g": 33,
"b": 125
},
"hsl": {
"h": 259.565,
"s": 58.228,
"l": 30.98
},
"oklch": {
"l": 0.34723,
"c": 0.14549,
"h": 292
},
"luminance": 0.03625
}Semantic roles & 50–950 ramp
primary
#3F217D
secondary
#8FB04A
accent
#E146AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F