#3A2FA5#3A2FA5
#3A2FA5 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.180 H 278.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2FA5 |
|---|---|
| RGB | rgb(58, 47, 165) |
| HSL | hsl(246, 56%, 42%) |
| HSV | hsv(246, 72%, 65%) |
| CMYK | cmyk(64.8%, 71.5%, 0%, 35.3%) |
| CIE-LAB | lab(28.51, 40.61, -61.79) |
| CIE-LCH | lch(28.51, 73.94, 303.32°) |
| OKLab | oklab(40.11% 0.0271 -0.1783) |
| OKLCH | oklch(40.11% 0.18 278.6) |
| XYZ | xyz(9.5508, 5.6484, 36.1770) |
| Luminance | 0.0565 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.10
Indigo Blue
#3A18B1
ΔE00 4.71
Ocean Blue
#4F42B5
ΔE00 5.85
Blueberry
#464196
ΔE00 5.95
Darkslateblue
#483D8B
ΔE00 6.47
Blue With A Hint Of Purple
#533CC6
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2FA5 #9AA52F
analogous
#2F5FA5 #3A2FA5 #752FA5
triadic
#3A2FA5 #A53A2F #2FA53A
tetradic
#3A2FA5 #A52F5F #9AA52F #2FA575
square
#3A2FA5 #A52F5F #9AA52F #2FA575
split-complementary
#3A2FA5 #A5752F #5FA52F
monochromatic
#191446 #292175 #3A2FA5 #5347CB #7F76D8
Accessibility & contrast
On white
9.86
#3A2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#3A2FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2FA5
9.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2FA5 | 1.00 | 9.86 | 2.13 | 9.86 |
| #FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #3a2fa5; /* rgb */ color: rgb(58, 47, 165); /* oklch */ color: oklch(40.1% 0.180 278.6);
Tailwind
colors: {
custom: {
50: '#7e69c1',
500: '#3a2fa5',
950: '#000000',
},
}SCSS
$custom: #3a2fa5; $custom-light: #7e69c1; $custom-dark: #000000;
JSON
{
"hex": "#3a2fa5",
"rgb": {
"r": 58,
"g": 47,
"b": 165
},
"hsl": {
"h": 245.593,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.40109,
"c": 0.18035,
"h": 278.6
},
"luminance": 0.05649
}Semantic roles & 50–950 ramp
primary
#3A2FA5
secondary
#B9C070
accent
#DF49D1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81