#3D21C2#3D21C2
#3D21C2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.7% C 0.227 H 278.0°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #3D21C2 |
|---|---|
| RGB | rgb(61, 33, 194) |
| HSL | hsl(250, 71%, 45%) |
| HSV | hsv(250, 83%, 76%) |
| CMYK | cmyk(68.6%, 83%, 0%, 23.9%) |
| CIE-LAB | lab(29.35, 56.78, -77.68) |
| CIE-LCH | lch(29.35, 96.22, 306.16°) |
| OKLab | oklab(41.66% 0.0315 -0.2244) |
| OKLCH | oklch(41.66% 0.227 278) |
| XYZ | xyz(12.2028, 5.9738, 51.5385) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.86
Violet Blue
#510AC9
ΔE00 3.11
True Blue
#010FCC
ΔE00 3.70
Ultramarine Blue
#1805DB
ΔE00 3.82
Pure Blue
#0203E2
ΔE00 4.36
Purple Blue
#5D21D0
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D21C2 #A6C221
analogous
#2155C2 #3D21C2 #8E21C2
triadic
#3D21C2 #C23D21 #21C23D
tetradic
#3D21C2 #C22155 #A6C221 #21C28E
square
#3D21C2 #C22155 #A6C221 #21C28E
split-complementary
#3D21C2 #C28E21 #55C221
monochromatic
#1C0F59 #2D188E #3D21C2 #5D41DF #8A76E8
Accessibility & contrast
On white
9.57
#3D21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#3D21C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D21C2
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D21C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D21C2 | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BC6
Deuteranopia (green-blind)
#003EBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #3d21c2; /* rgb */ color: rgb(61, 33, 194); /* oklch */ color: oklch(41.7% 0.227 278.0);
Tailwind
colors: {
custom: {
50: '#8663d6',
500: '#3d21c2',
950: '#000000',
},
}SCSS
$custom: #3d21c2; $custom-light: #8663d6; $custom-dark: #000000;
JSON
{
"hex": "#3d21c2",
"rgb": {
"r": 61,
"g": 33,
"b": 194
},
"hsl": {
"h": 250.435,
"s": 70.925,
"l": 44.51
},
"oklch": {
"l": 0.41659,
"c": 0.22659,
"h": 278
},
"luminance": 0.05975
}Semantic roles & 50–950 ramp
primary
#3D21C2
secondary
#BECF70
accent
#EE3ACE
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83