#3A408D#3A408D
#3A408D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.126 H 276.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).
Color values
| HEX | #3A408D |
|---|---|
| RGB | rgb(58, 64, 141) |
| HSL | hsl(236, 42%, 39%) |
| HSV | hsv(236, 59%, 55%) |
| CMYK | cmyk(58.9%, 54.6%, 0%, 44.7%) |
| CIE-LAB | lab(30.61, 21.66, -43.72) |
| CIE-LCH | lch(30.61, 48.79, 296.35°) |
| OKLab | oklab(41.03% 0.0131 -0.1252) |
| OKLCH | oklch(41.03% 0.126 276) |
| XYZ | xyz(8.3845, 6.4888, 26.0048) |
| Luminance | 0.0649 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.63
Darkslateblue
#483D8B
ΔE00 3.43
Sapphire (survey)
#2138AB
ΔE00 5.83
Cobalt (survey)
#1E488F
ΔE00 6.24
Twilight
#4E518B
ΔE00 6.31
Cobalt
#0047AB
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A408D #8D873A
analogous
#3A6A8D #3A408D #5E3A8D
triadic
#3A408D #8D3A40 #408D3A
tetradic
#3A408D #8D3A6A #8D873A #3A8D5E
square
#3A408D #8D3A6A #8D873A #3A8D5E
split-complementary
#3A408D #8D5E3A #6A8D3A
monochromatic
#161936 #282C62 #3A408D #4E56B6 #797FC8
Accessibility & contrast
On white
9.14
#3A408D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#3A408D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A408D
9.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A408D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A408D | 1.00 | 9.14 | 2.30 | 9.14 |
| #FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#124C90
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#055260
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #3a408d; /* rgb */ color: rgb(58, 64, 141); /* oklch */ color: oklch(41.0% 0.126 276.0);
Tailwind
colors: {
custom: {
50: '#7874af',
500: '#3a408d',
950: '#000000',
},
}SCSS
$custom: #3a408d; $custom-light: #7874af; $custom-dark: #000000;
JSON
{
"hex": "#3a408d",
"rgb": {
"r": 58,
"g": 64,
"b": 141
},
"hsl": {
"h": 235.663,
"s": 41.709,
"l": 39.02
},
"oklch": {
"l": 0.41032,
"c": 0.12587,
"h": 276
},
"luminance": 0.06489
}Semantic roles & 50–950 ramp
primary
#3A408D
secondary
#B1AD71
accent
#C956D2
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F