#3A3498#3A3498
#3A3498 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.157 H 279.1°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #3A3498 |
|---|---|
| RGB | rgb(58, 52, 152) |
| HSL | hsl(244, 49%, 40%) |
| HSV | hsv(244, 66%, 60%) |
| CMYK | cmyk(61.8%, 65.8%, 0%, 40.4%) |
| CIE-LAB | lab(28.44, 33.26, -54.00) |
| CIE-LCH | lch(28.44, 63.42, 301.63°) |
| OKLab | oklab(39.7% 0.0249 -0.1555) |
| OKLCH | oklch(39.7% 0.157 279.1) |
| XYZ | xyz(8.6386, 5.6219, 30.3296) |
| Luminance | 0.0562 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.07
Sapphire (survey)
#2138AB
ΔE00 4.08
Darkslateblue
#483D8B
ΔE00 4.37
Ocean Blue
#4F42B5
ΔE00 6.05
Indigo Blue
#3A18B1
ΔE00 6.95
Royal
#0C1793
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A3498 #929834
analogous
#346098 #3A3498 #6C3498
triadic
#3A3498 #983A34 #34983A
tetradic
#3A3498 #983460 #929834 #34986C
square
#3A3498 #983460 #929834 #34986C
split-complementary
#3A3498 #986C34 #609834
monochromatic
#17153D #29246A #3A3498 #5049C1 #7C76D0
Accessibility & contrast
On white
9.88
#3A3498 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#3A3498 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A3498
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A3498 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A3498 | 1.00 | 9.88 | 2.12 | 9.88 |
| #FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #3a3498; /* rgb */ color: rgb(58, 52, 152); /* oklch */ color: oklch(39.7% 0.157 279.1);
Tailwind
colors: {
custom: {
50: '#7b6cb7',
500: '#3a3498',
950: '#000000',
},
}SCSS
$custom: #3a3498; $custom-light: #7b6cb7; $custom-dark: #000000;
JSON
{
"hex": "#3a3498",
"rgb": {
"r": 58,
"g": 52,
"b": 152
},
"hsl": {
"h": 243.6,
"s": 49.02,
"l": 40
},
"oklch": {
"l": 0.39695,
"c": 0.15748,
"h": 279.1
},
"luminance": 0.05623
}Semantic roles & 50–950 ramp
primary
#3A3498
secondary
#B4B96F
accent
#D94FD0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80