#40477E#40477E
#40477E is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.091 H 276.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #40477E |
|---|---|
| RGB | rgb(64, 71, 126) |
| HSL | hsl(233, 33%, 37%) |
| HSV | hsv(233, 49%, 49%) |
| CMYK | cmyk(49.2%, 43.7%, 0%, 50.6%) |
| CIE-LAB | lab(32.04, 13.26, -32.13) |
| CIE-LCH | lch(32.04, 34.76, 292.42°) |
| OKLab | oklab(41.91% 0.0099 -0.0909) |
| OKLCH | oklch(41.91% 0.091 276.2) |
| XYZ | xyz(8.1323, 7.1024, 20.6770) |
| Luminance | 0.0710 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 3.87
Dusk
#4E5481
ΔE00 4.77
Darkslateblue
#483D8B
ΔE00 5.58
Blueberry
#464196
ΔE00 5.67
Cobalt (survey)
#1E488F
ΔE00 6.86
Darkish Blue
#014182
ΔE00 8.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40477E #7E7740
analogous
#40667E #40477E #58407E
triadic
#40477E #7E4047 #477E40
tetradic
#40477E #7E4066 #7E7740 #407E58
square
#40477E #7E4066 #7E7740 #407E58
split-complementary
#40477E #7E5840 #667E40
monochromatic
#17192D #2B3055 #40477E #555EA7 #7C83BC
Accessibility & contrast
On white
8.68
#40477E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#40477E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40477E
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40477E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40477E | 1.00 | 8.68 | 2.42 | 8.68 |
| #FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#2C497D
Tritanopia (blue-blind)
#29525C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #40477e; /* rgb */ color: rgb(64, 71, 126); /* oklch */ color: oklch(41.9% 0.091 276.2);
Tailwind
colors: {
custom: {
50: '#797aa4',
500: '#40477e',
950: '#000000',
},
}SCSS
$custom: #40477e; $custom-light: #797aa4; $custom-dark: #000000;
JSON
{
"hex": "#40477e",
"rgb": {
"r": 64,
"g": 71,
"b": 126
},
"hsl": {
"h": 233.226,
"s": 32.632,
"l": 37.255
},
"oklch": {
"l": 0.41912,
"c": 0.09148,
"h": 276.2
},
"luminance": 0.07103
}Semantic roles & 50–950 ramp
primary
#40477E
secondary
#A7A173
accent
#BD5FC9
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F