#3E21B2#3E21B2
#3E21B2 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.0% C 0.208 H 280.5°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).
Color values
| HEX | #3E21B2 |
|---|---|
| RGB | rgb(62, 33, 178) |
| HSL | hsl(252, 69%, 41%) |
| HSV | hsv(252, 81%, 70%) |
| CMYK | cmyk(65.2%, 81.5%, 0%, 30.2%) |
| CIE-LAB | lab(27.64, 52.28, -71.01) |
| CIE-LCH | lch(27.64, 88.18, 306.36°) |
| OKLab | oklab(39.98% 0.038 -0.205) |
| OKLCH | oklch(39.98% 0.208 280.5) |
| XYZ | xyz(10.5638, 5.3254, 42.5821) |
| Luminance | 0.0533 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.52
Violet Blue
#510AC9
ΔE00 4.10
True Blue
#010FCC
ΔE00 4.42
Ultramarine
#2000B1
ΔE00 4.79
Mediumblue
#0000CD
ΔE00 5.00
Ultramarine Blue
#1805DB
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E21B2 #95B221
analogous
#214DB2 #3E21B2 #8721B2
triadic
#3E21B2 #B23E21 #21B23E
tetradic
#3E21B2 #B2214D #95B221 #21B287
square
#3E21B2 #B2214D #95B221 #21B287
split-complementary
#3E21B2 #B28721 #4DB221
monochromatic
#1A0E4B #2C177E #3E21B2 #5736DA #826AE3
Accessibility & contrast
On white
10.17
#3E21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#3E21B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E21B2
10.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E21B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E21B2 | 1.00 | 10.17 | 2.07 | 10.17 |
| #FFFFFF | 10.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #3e21b2; /* rgb */ color: rgb(62, 33, 178); /* oklch */ color: oklch(40.0% 0.208 280.5);
Tailwind
colors: {
custom: {
50: '#8462ca',
500: '#3e21b2',
950: '#000000',
},
}SCSS
$custom: #3e21b2; $custom-light: #8462ca; $custom-dark: #000000;
JSON
{
"hex": "#3e21b2",
"rgb": {
"r": 62,
"g": 33,
"b": 178
},
"hsl": {
"h": 252,
"s": 68.72,
"l": 41.373
},
"oklch": {
"l": 0.39983,
"c": 0.20846,
"h": 280.5
},
"luminance": 0.05326
}Semantic roles & 50–950 ramp
primary
#3E21B2
secondary
#B5C966
accent
#EC3CC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82