#3A2FA2#3A2FA2
#3A2FA2 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.177 H 279.0°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2FA2 |
|---|---|
| RGB | rgb(58, 47, 162) |
| HSL | hsl(246, 55%, 41%) |
| HSV | hsv(246, 71%, 64%) |
| CMYK | cmyk(64.2%, 71%, 0%, 36.5%) |
| CIE-LAB | lab(28.22, 39.63, -60.44) |
| CIE-LCH | lch(28.22, 72.27, 303.25°) |
| OKLab | oklab(39.82% 0.0277 -0.1744) |
| OKLCH | oklch(39.82% 0.177 279) |
| XYZ | xyz(9.2809, 5.5405, 34.7558) |
| Luminance | 0.0554 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.19
Indigo Blue
#3A18B1
ΔE00 4.90
Blueberry
#464196
ΔE00 5.77
Ocean Blue
#4F42B5
ΔE00 6.03
Darkslateblue
#483D8B
ΔE00 6.19
Royal
#0C1793
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2FA2 #97A22F
analogous
#2F5DA2 #3A2FA2 #732FA2
triadic
#3A2FA2 #A23A2F #2FA23A
tetradic
#3A2FA2 #A22F5D #97A22F #2FA273
square
#3A2FA2 #A22F5D #97A22F #2FA273
split-complementary
#3A2FA2 #A2732F #5DA22F
monochromatic
#181343 #292173 #3A2FA2 #5245C9 #7E75D7
Accessibility & contrast
On white
9.96
#3A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#3A2FA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2FA2
9.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2FA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2FA2 | 1.00 | 9.96 | 2.11 | 9.96 |
| #FFFFFF | 9.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #3a2fa2; /* rgb */ color: rgb(58, 47, 162); /* oklch */ color: oklch(39.8% 0.177 279.0);
Tailwind
colors: {
custom: {
50: '#7d69bf',
500: '#3a2fa2',
950: '#000000',
},
}SCSS
$custom: #3a2fa2; $custom-light: #7d69bf; $custom-dark: #000000;
JSON
{
"hex": "#3a2fa2",
"rgb": {
"r": 58,
"g": 47,
"b": 162
},
"hsl": {
"h": 245.739,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.39818,
"c": 0.17654,
"h": 279
},
"luminance": 0.05541
}Semantic roles & 50–950 ramp
primary
#3A2FA2
secondary
#B7BF6E
accent
#DE49D0
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81