#3A408C#3A408C
#3A408C is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.124 H 276.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).
Color values
| HEX | #3A408C |
|---|---|
| RGB | rgb(58, 64, 140) |
| HSL | hsl(236, 41%, 39%) |
| HSV | hsv(236, 59%, 55%) |
| CMYK | cmyk(58.6%, 54.3%, 0%, 45.1%) |
| CIE-LAB | lab(30.54, 21.31, -43.22) |
| CIE-LCH | lch(30.54, 48.18, 296.24°) |
| OKLab | oklab(40.96% 0.0131 -0.1237) |
| OKLCH | oklch(40.96% 0.124 276) |
| XYZ | xyz(8.3104, 6.4592, 25.6147) |
| Luminance | 0.0646 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.73
Darkslateblue
#483D8B
ΔE00 3.43
Sapphire (survey)
#2138AB
ΔE00 5.98
Cobalt (survey)
#1E488F
ΔE00 6.24
Twilight
#4E518B
ΔE00 6.25
Cobalt
#0047AB
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A408C #8C863A
analogous
#3A698C #3A408C #5D3A8C
triadic
#3A408C #8C3A40 #408C3A
tetradic
#3A408C #8C3A69 #8C863A #3A8C5D
square
#3A408C #8C3A69 #8C863A #3A8C5D
split-complementary
#3A408C #8C5D3A #698C3A
monochromatic
#161835 #282C61 #3A408C #4E55B6 #797FC7
Accessibility & contrast
On white
9.16
#3A408C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#3A408C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A408C
9.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A408C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A408C | 1.00 | 9.16 | 2.29 | 9.16 |
| #FFFFFF | 9.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#134B8F
Deuteranopia (green-blind)
#00458A
Tritanopia (blue-blind)
#08515F
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #3a408c; /* rgb */ color: rgb(58, 64, 140); /* oklch */ color: oklch(41.0% 0.124 276.0);
Tailwind
colors: {
custom: {
50: '#7874ae',
500: '#3a408c',
950: '#000000',
},
}SCSS
$custom: #3a408c; $custom-light: #7874ae; $custom-dark: #000000;
JSON
{
"hex": "#3a408c",
"rgb": {
"r": 58,
"g": 64,
"b": 140
},
"hsl": {
"h": 235.61,
"s": 41.414,
"l": 38.824
},
"oklch": {
"l": 0.40956,
"c": 0.12439,
"h": 276
},
"luminance": 0.0646
}Semantic roles & 50–950 ramp
primary
#3A408C
secondary
#B1AC71
accent
#C857D1
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F