#3F217B#3F217B
#3F217B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.143 H 292.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #3F217B |
|---|---|
| RGB | rgb(63, 33, 123) |
| HSL | hsl(260, 58%, 31%) |
| HSV | hsv(260, 73%, 48%) |
| CMYK | cmyk(48.8%, 73.2%, 0%, 51.8%) |
| CIE-LAB | lab(22.21, 36.22, -46.08) |
| CIE-LCH | lch(22.21, 58.61, 308.17°) |
| OKLab | oklab(34.54% 0.0549 -0.132) |
| OKLCH | oklch(34.54% 0.143 292.6) |
| XYZ | xyz(6.1679, 3.5743, 19.1000) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.28
Indigo
#4B0082
ΔE00 5.34
Midnight Blue
#191970
ΔE00 5.79
Royal Purple (survey)
#4B006E
ΔE00 6.28
Royal
#0C1793
ΔE00 7.00
Darkslateblue
#483D8B
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F217B #5D7B21
analogous
#21307B #3F217B #6C217B
triadic
#3F217B #7B3F21 #217B3F
tetradic
#3F217B #7B2130 #5D7B21 #217B6C
square
#3F217B #7B2130 #5D7B21 #217B6C
split-complementary
#3F217B #7B6C21 #307B21
monochromatic
#0E071A #26144B #3F217B #582EAB #7548CE
Accessibility & contrast
On white
12.24
#3F217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3F217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F217B
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F217B | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#2D384B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3f217b; /* rgb */ color: rgb(63, 33, 123); /* oklch */ color: oklch(34.5% 0.143 292.6);
Tailwind
colors: {
custom: {
50: '#7a5fa2',
500: '#3f217b',
950: '#000000',
},
}SCSS
$custom: #3f217b; $custom-light: #7a5fa2; $custom-dark: #000000;
JSON
{
"hex": "#3f217b",
"rgb": {
"r": 63,
"g": 33,
"b": 123
},
"hsl": {
"h": 260,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.3454,
"c": 0.143,
"h": 292.6
},
"luminance": 0.03575
}Semantic roles & 50–950 ramp
primary
#3F217B
secondary
#8DAE4A
accent
#E147AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F