#3B218E#3B218E
#3B218E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.167 H 285.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #3B218E |
|---|---|
| RGB | rgb(59, 33, 142) |
| HSL | hsl(254, 62%, 34%) |
| HSV | hsv(254, 77%, 56%) |
| CMYK | cmyk(58.5%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(23.57, 41.27, -55.81) |
| CIE-LCH | lch(23.57, 69.41, 306.48°) |
| OKLab | oklab(35.95% 0.0441 -0.1607) |
| OKLCH | oklch(35.95% 0.167 285.3) |
| XYZ | xyz(7.2285, 3.9701, 25.9713) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.72
Indigo (survey)
#380282
ΔE00 5.06
Indigo Blue
#3A18B1
ΔE00 5.06
Indigo
#4B0082
ΔE00 5.82
Cobalt Blue
#030AA7
ΔE00 6.09
Midnight Blue
#191970
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B218E #748E21
analogous
#213E8E #3B218E #72218E
triadic
#3B218E #8E3B21 #218E3B
tetradic
#3B218E #8E213E #748E21 #218E72
square
#3B218E #8E213E #748E21 #218E72
split-complementary
#3B218E #8E7221 #3E8E21
monochromatic
#120A2B #26155C #3B218E #502DC0 #7252D7
Accessibility & contrast
On white
11.70
#3B218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3B218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B218E
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B218E | 1.00 | 11.70 | 1.79 | 11.70 |
| #FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#104056
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3b218e; /* rgb */ color: rgb(59, 33, 142); /* oklch */ color: oklch(35.9% 0.167 285.3);
Tailwind
colors: {
custom: {
50: '#7b60b0',
500: '#3b218e',
950: '#000000',
},
}SCSS
$custom: #3b218e; $custom-light: #7b60b0; $custom-dark: #000000;
JSON
{
"hex": "#3b218e",
"rgb": {
"r": 59,
"g": 33,
"b": 142
},
"hsl": {
"h": 254.312,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.3595,
"c": 0.16664,
"h": 285.3
},
"luminance": 0.03971
}Semantic roles & 50–950 ramp
primary
#3B218E
secondary
#A1BA50
accent
#E542BE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980