#3A218F#3A218F
#3A218F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.168 H 284.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3A218F |
|---|---|
| RGB | rgb(58, 33, 143) |
| HSL | hsl(254, 63%, 35%) |
| HSV | hsv(254, 77%, 56%) |
| CMYK | cmyk(59.4%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(23.57, 41.43, -56.43) |
| CIE-LCH | lch(23.57, 70.01, 306.29°) |
| OKLab | oklab(35.96% 0.0423 -0.1626) |
| OKLCH | oklch(35.96% 0.168 284.6) |
| XYZ | xyz(7.2452, 3.9700, 26.3658) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.55
Indigo Blue
#3A18B1
ΔE00 4.91
Indigo (survey)
#380282
ΔE00 5.12
Cobalt Blue
#030AA7
ΔE00 5.91
Indigo
#4B0082
ΔE00 5.96
Royal Blue (survey)
#0504AA
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A218F #768F21
analogous
#213F8F #3A218F #71218F
triadic
#3A218F #8F3A21 #218F3A
tetradic
#3A218F #8F213F #768F21 #218F71
square
#3A218F #8F213F #768F21 #218F71
split-complementary
#3A218F #8F7121 #3F8F21
monochromatic
#120A2C #26165D #3A218F #4E2CC1 #7153D7
Accessibility & contrast
On white
11.71
#3A218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3A218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A218F
11.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A218F | 1.00 | 11.71 | 1.79 | 11.71 |
| #FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#094057
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3a218f; /* rgb */ color: rgb(58, 33, 143); /* oklch */ color: oklch(36.0% 0.168 284.6);
Tailwind
colors: {
custom: {
50: '#7b5fb1',
500: '#3a218f',
950: '#000000',
},
}SCSS
$custom: #3a218f; $custom-light: #7b5fb1; $custom-dark: #000000;
JSON
{
"hex": "#3a218f",
"rgb": {
"r": 58,
"g": 33,
"b": 143
},
"hsl": {
"h": 253.636,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.35956,
"c": 0.16797,
"h": 284.6
},
"luminance": 0.0397
}Semantic roles & 50–950 ramp
primary
#3A218F
secondary
#A3BB51
accent
#E642C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980