#3F2170#3F2170
#3F2170 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.129 H 296.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3F2170 |
|---|---|
| RGB | rgb(63, 33, 112) |
| HSL | hsl(263, 54%, 28%) |
| HSV | hsv(263, 71%, 44%) |
| CMYK | cmyk(43.7%, 70.5%, 0%, 56.1%) |
| CIE-LAB | lab(21.26, 32.99, -40.58) |
| CIE-LCH | lch(21.26, 52.30, 309.11°) |
| OKLab | oklab(33.56% 0.0569 -0.1159) |
| OKLCH | oklch(33.56% 0.129 296.1) |
| XYZ | xyz(5.5176, 3.3142, 15.6751) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.95
Indigo
#4B0082
ΔE00 6.21
Midnight Blue
#191970
ΔE00 6.22
Indigo (survey)
#380282
ΔE00 6.44
Dark Indigo
#1F0954
ΔE00 7.48
Darkslateblue
#483D8B
ΔE00 8.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F2170 #527021
analogous
#212A70 #3F2170 #662170
triadic
#3F2170 #703F21 #21703F
tetradic
#3F2170 #70212A #527021 #217066
square
#3F2170 #70212A #527021 #217066
split-complementary
#3F2170 #706621 #2A7021
monochromatic
#0D0718 #241341 #3F2170 #5A2F9F #7644C8
Accessibility & contrast
On white
12.63
#3F2170 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3F2170 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F2170
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F2170 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F2170 | 1.00 | 12.63 | 1.66 | 12.63 |
| #FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#323445
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f2170; /* rgb */ color: rgb(63, 33, 112); /* oklch */ color: oklch(33.6% 0.129 296.1);
Tailwind
colors: {
custom: {
50: '#795e9a',
500: '#3f2170',
950: '#000000',
},
}SCSS
$custom: #3f2170; $custom-light: #795e9a; $custom-dark: #000000;
JSON
{
"hex": "#3f2170",
"rgb": {
"r": 63,
"g": 33,
"b": 112
},
"hsl": {
"h": 262.785,
"s": 54.483,
"l": 28.431
},
"oklch": {
"l": 0.33564,
"c": 0.12909,
"h": 296.1
},
"luminance": 0.03314
}Semantic roles & 50–950 ramp
primary
#3F2170
secondary
#81A449
accent
#DE4AA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E