#3F216E#3F216E
#3F216E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.127 H 296.9°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).
Color values
| HEX | #3F216E |
|---|---|
| RGB | rgb(63, 33, 110) |
| HSL | hsl(263, 54%, 28%) |
| HSV | hsv(263, 70%, 43%) |
| CMYK | cmyk(42.7%, 70%, 0%, 56.9%) |
| CIE-LAB | lab(21.10, 32.41, -39.55) |
| CIE-LCH | lch(21.10, 51.14, 309.33°) |
| OKLab | oklab(33.39% 0.0572 -0.1129) |
| OKLCH | oklch(33.39% 0.127 296.9) |
| XYZ | xyz(5.4075, 3.2702, 15.0951) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.97
Midnight Blue
#191970
ΔE00 6.39
Indigo
#4B0082
ΔE00 6.44
Indigo (survey)
#380282
ΔE00 6.72
Dark Indigo
#1F0954
ΔE00 7.38
Darkslateblue
#483D8B
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F216E #506E21
analogous
#21296E #3F216E #65216E
triadic
#3F216E #6E3F21 #216E3F
tetradic
#3F216E #6E2129 #506E21 #216E65
square
#3F216E #6E2129 #506E21 #216E65
split-complementary
#3F216E #6E6521 #296E21
monochromatic
#0D0718 #24133F #3F216E #5A2F9D #7643C7
Accessibility & contrast
On white
12.70
#3F216E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3F216E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F216E
12.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F216E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F216E | 1.00 | 12.70 | 1.65 | 12.70 |
| #FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#333344
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f216e; /* rgb */ color: rgb(63, 33, 110); /* oklch */ color: oklch(33.4% 0.127 296.9);
Tailwind
colors: {
custom: {
50: '#785e98',
500: '#3f216e',
950: '#000000',
},
}SCSS
$custom: #3f216e; $custom-light: #785e98; $custom-dark: #000000;
JSON
{
"hex": "#3f216e",
"rgb": {
"r": 63,
"g": 33,
"b": 110
},
"hsl": {
"h": 263.377,
"s": 53.846,
"l": 28.039
},
"oklch": {
"l": 0.33393,
"c": 0.12653,
"h": 296.9
},
"luminance": 0.0327
}Semantic roles & 50–950 ramp
primary
#3F216E
secondary
#7FA249
accent
#DD4BA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E