#3A408E#3A408E
#3A408E is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.127 H 276.0°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).
Color values
| HEX | #3A408E |
|---|---|
| RGB | rgb(58, 64, 142) |
| HSL | hsl(236, 42%, 39%) |
| HSV | hsv(236, 59%, 56%) |
| CMYK | cmyk(59.2%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(30.69, 22.01, -44.22) |
| CIE-LCH | lch(30.69, 49.39, 296.46°) |
| OKLab | oklab(41.11% 0.0132 -0.1267) |
| OKLCH | oklch(41.11% 0.127 276) |
| XYZ | xyz(8.4592, 6.5187, 26.3984) |
| Luminance | 0.0652 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.53
Darkslateblue
#483D8B
ΔE00 3.44
Sapphire (survey)
#2138AB
ΔE00 5.68
Cobalt (survey)
#1E488F
ΔE00 6.24
Twilight
#4E518B
ΔE00 6.37
Ocean Blue
#4F42B5
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A408E #8E883A
analogous
#3A6A8E #3A408E #5E3A8E
triadic
#3A408E #8E3A40 #408E3A
tetradic
#3A408E #8E3A6A #8E883A #3A8E5E
square
#3A408E #8E3A6A #8E883A #3A8E5E
split-complementary
#3A408E #8E5E3A #6A8E3A
monochromatic
#171937 #282C63 #3A408E #4E56B7 #7A7FC9
Accessibility & contrast
On white
9.12
#3A408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#3A408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A408E
9.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A408E | 1.00 | 9.12 | 2.30 | 9.12 |
| #FFFFFF | 9.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#104C91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#035260
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #3a408e; /* rgb */ color: rgb(58, 64, 142); /* oklch */ color: oklch(41.1% 0.127 276.0);
Tailwind
colors: {
custom: {
50: '#7874b0',
500: '#3a408e',
950: '#000000',
},
}SCSS
$custom: #3a408e; $custom-light: #7874b0; $custom-dark: #000000;
JSON
{
"hex": "#3a408e",
"rgb": {
"r": 58,
"g": 64,
"b": 142
},
"hsl": {
"h": 235.714,
"s": 42,
"l": 39.216
},
"oklch": {
"l": 0.41108,
"c": 0.12734,
"h": 276
},
"luminance": 0.06519
}Semantic roles & 50–950 ramp
primary
#3A408E
secondary
#B2AD72
accent
#C956D2
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#090810
muted
#7B7B7F