#3A408F#3A408F
#3A408F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.129 H 275.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).
Color values
| HEX | #3A408F |
|---|---|
| RGB | rgb(58, 64, 143) |
| HSL | hsl(236, 42%, 39%) |
| HSV | hsv(236, 59%, 56%) |
| CMYK | cmyk(59.4%, 55.2%, 0%, 43.9%) |
| CIE-LAB | lab(30.76, 22.36, -44.72) |
| CIE-LCH | lch(30.76, 50.00, 296.57°) |
| OKLab | oklab(41.19% 0.0133 -0.1281) |
| OKLCH | oklch(41.19% 0.129 275.9) |
| XYZ | xyz(8.5346, 6.5489, 26.7956) |
| Luminance | 0.0655 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.45
Darkslateblue
#483D8B
ΔE00 3.46
Sapphire (survey)
#2138AB
ΔE00 5.53
Cobalt (survey)
#1E488F
ΔE00 6.25
Twilight
#4E518B
ΔE00 6.44
Ocean Blue
#4F42B5
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A408F #8F893A
analogous
#3A6B8F #3A408F #5F3A8F
triadic
#3A408F #8F3A40 #408F3A
tetradic
#3A408F #8F3A6B #8F893A #3A8F5F
square
#3A408F #8F3A6B #8F893A #3A8F5F
split-complementary
#3A408F #8F5F3A #6B8F3A
monochromatic
#171938 #282D63 #3A408F #4F56B7 #7A80C9
Accessibility & contrast
On white
9.09
#3A408F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#3A408F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A408F
9.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A408F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A408F | 1.00 | 9.09 | 2.31 | 9.09 |
| #FFFFFF | 9.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D4C92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#005261
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #3a408f; /* rgb */ color: rgb(58, 64, 143); /* oklch */ color: oklch(41.2% 0.129 275.9);
Tailwind
colors: {
custom: {
50: '#7874b0',
500: '#3a408f',
950: '#000000',
},
}SCSS
$custom: #3a408f; $custom-light: #7874b0; $custom-dark: #000000;
JSON
{
"hex": "#3a408f",
"rgb": {
"r": 58,
"g": 64,
"b": 143
},
"hsl": {
"h": 235.765,
"s": 42.289,
"l": 39.412
},
"oklch": {
"l": 0.41185,
"c": 0.12879,
"h": 275.9
},
"luminance": 0.0655
}Semantic roles & 50–950 ramp
primary
#3A408F
secondary
#B3AE72
accent
#C956D2
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0811
muted
#7C7B80