#40478E#40478E
#40478E is a dark, moderate blue. Relative luminance 0.075; OKLCH L 43.0% C 0.116 H 276.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).
Color values
| HEX | #40478E |
|---|---|
| RGB | rgb(64, 71, 142) |
| HSL | hsl(235, 38%, 40%) |
| HSV | hsv(235, 55%, 56%) |
| CMYK | cmyk(54.9%, 50%, 0%, 44.3%) |
| CIE-LAB | lab(33.03, 18.66, -40.43) |
| CIE-LCH | lch(33.03, 44.53, 294.77°) |
| OKLab | oklab(42.98% 0.0124 -0.1153) |
| OKLCH | oklch(42.98% 0.116 276.1) |
| XYZ | xyz(9.2485, 7.5489, 26.5557) |
| Luminance | 0.0755 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.28
Twilight
#4E518B
ΔE00 4.19
Darkslateblue
#483D8B
ΔE00 4.37
Cobalt (survey)
#1E488F
ΔE00 5.89
Dusk
#4E5481
ΔE00 6.34
Cobalt
#0047AB
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40478E #8E8740
analogous
#406E8E #40478E #60408E
triadic
#40478E #8E4047 #478E40
tetradic
#40478E #8E406E #8E8740 #408E60
square
#40478E #8E406E #8E8740 #408E60
split-complementary
#40478E #8E6040 #6E8E40
monochromatic
#1A1D3A #2D3264 #40478E #5860B4 #8288C7
Accessibility & contrast
On white
8.37
#40478E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#40478E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40478E
8.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40478E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40478E | 1.00 | 8.37 | 2.51 | 8.37 |
| #FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#1C4B8C
Tritanopia (blue-blind)
#1B5763
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #40478e; /* rgb */ color: rgb(64, 71, 142); /* oklch */ color: oklch(43.0% 0.116 276.1);
Tailwind
colors: {
custom: {
50: '#7b7aaf',
500: '#40478e',
950: '#000000',
},
}SCSS
$custom: #40478e; $custom-light: #7b7aaf; $custom-dark: #000000;
JSON
{
"hex": "#40478e",
"rgb": {
"r": 64,
"g": 71,
"b": 142
},
"hsl": {
"h": 234.615,
"s": 37.864,
"l": 40.392
},
"oklch": {
"l": 0.42981,
"c": 0.11594,
"h": 276.1
},
"luminance": 0.07549
}Semantic roles & 50–950 ramp
primary
#40478E
secondary
#B1AC79
accent
#C35ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F