#3F21C2#3F21C2
#3F21C2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.8% C 0.226 H 278.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).
Color values
| HEX | #3F21C2 |
|---|---|
| RGB | rgb(63, 33, 194) |
| HSL | hsl(251, 71%, 45%) |
| HSV | hsv(251, 83%, 76%) |
| CMYK | cmyk(67.5%, 83%, 0%, 23.9%) |
| CIE-LAB | lab(29.51, 56.94, -77.41) |
| CIE-LCH | lch(29.51, 96.09, 306.34°) |
| OKLab | oklab(41.81% 0.0344 -0.2235) |
| OKLCH | oklch(41.81% 0.226 278.7) |
| XYZ | xyz(12.3282, 6.0385, 51.5443) |
| Luminance | 0.0604 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.92
Violet Blue
#510AC9
ΔE00 2.97
True Blue
#010FCC
ΔE00 3.86
Ultramarine Blue
#1805DB
ΔE00 3.91
Purple Blue
#5D21D0
ΔE00 4.23
Pure Blue
#0203E2
ΔE00 4.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F21C2 #A4C221
analogous
#2154C2 #3F21C2 #9021C2
triadic
#3F21C2 #C23F21 #21C23F
tetradic
#3F21C2 #C22154 #A4C221 #21C290
square
#3F21C2 #C22154 #A4C221 #21C290
split-complementary
#3F21C2 #C29021 #54C221
monochromatic
#1D0F59 #2E188E #3F21C2 #5F41DF #8B76E8
Accessibility & contrast
On white
9.51
#3F21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#3F21C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F21C2
9.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F21C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F21C2 | 1.00 | 9.51 | 2.21 | 9.51 |
| #FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BC6
Deuteranopia (green-blind)
#003FBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #3f21c2; /* rgb */ color: rgb(63, 33, 194); /* oklch */ color: oklch(41.8% 0.226 278.7);
Tailwind
colors: {
custom: {
50: '#8763d6',
500: '#3f21c2',
950: '#000000',
},
}SCSS
$custom: #3f21c2; $custom-light: #8763d6; $custom-dark: #000000;
JSON
{
"hex": "#3f21c2",
"rgb": {
"r": 63,
"g": 33,
"b": 194
},
"hsl": {
"h": 251.18,
"s": 70.925,
"l": 44.51
},
"oklch": {
"l": 0.41812,
"c": 0.22617,
"h": 278.7
},
"luminance": 0.0604
}Semantic roles & 50–950 ramp
primary
#3F21C2
secondary
#BDCF70
accent
#EE3ACC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83