#3A2F99#3A2F99
#3A2F99 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.165 H 280.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2F99 |
|---|---|
| RGB | rgb(58, 47, 153) |
| HSL | hsl(246, 53%, 39%) |
| HSV | hsv(246, 69%, 60%) |
| CMYK | cmyk(62.1%, 69.3%, 0%, 40%) |
| CIE-LAB | lab(27.39, 36.67, -56.33) |
| CIE-LCH | lch(27.39, 67.22, 303.06°) |
| OKLab | oklab(38.96% 0.0291 -0.1623) |
| OKLCH | oklch(38.96% 0.165 280.2) |
| XYZ | xyz(8.5094, 5.2319, 30.6923) |
| Luminance | 0.0523 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.71
Blueberry
#464196
ΔE00 5.37
Darkslateblue
#483D8B
ΔE00 5.38
Indigo Blue
#3A18B1
ΔE00 5.67
Royal
#0C1793
ΔE00 6.48
Ocean Blue
#4F42B5
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2F99 #8E992F
analogous
#2F5999 #3A2F99 #6F2F99
triadic
#3A2F99 #993A2F #2F993A
tetradic
#3A2F99 #992F59 #8E992F #2F996F
square
#3A2F99 #992F59 #8E992F #2F996F
split-complementary
#3A2F99 #996F2F #59992F
monochromatic
#17123B #28216A #3A2F99 #4E41C5 #7A6FD3
Accessibility & contrast
On white
10.26
#3A2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#3A2F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2F99
10.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2F99 | 1.00 | 10.26 | 2.05 | 10.26 |
| #FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #3a2f99; /* rgb */ color: rgb(58, 47, 153); /* oklch */ color: oklch(39.0% 0.165 280.2);
Tailwind
colors: {
custom: {
50: '#7c69b8',
500: '#3a2f99',
950: '#000000',
},
}SCSS
$custom: #3a2f99; $custom-light: #7c69b8; $custom-dark: #000000;
JSON
{
"hex": "#3a2f99",
"rgb": {
"r": 58,
"g": 47,
"b": 153
},
"hsl": {
"h": 246.226,
"s": 53,
"l": 39.216
},
"oklch": {
"l": 0.38961,
"c": 0.16493,
"h": 280.2
},
"luminance": 0.05232
}Semantic roles & 50–950 ramp
primary
#3A2F99
secondary
#B2BA69
accent
#DC4BCD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80