#40477D#40477D
#40477D is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.090 H 276.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #40477D |
|---|---|
| RGB | rgb(64, 71, 125) |
| HSL | hsl(233, 32%, 37%) |
| HSV | hsv(233, 49%, 49%) |
| CMYK | cmyk(48.8%, 43.2%, 0%, 51%) |
| CIE-LAB | lab(31.98, 12.93, -31.60) |
| CIE-LCH | lch(31.98, 34.14, 292.25°) |
| OKLab | oklab(41.85% 0.0097 -0.0894) |
| OKLCH | oklch(41.85% 0.09 276.2) |
| XYZ | xyz(8.0681, 7.0767, 20.3389) |
| Luminance | 0.0708 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 3.93
Dusk
#4E5481
ΔE00 4.71
Darkslateblue
#483D8B
ΔE00 5.72
Blueberry
#464196
ΔE00 5.85
Cobalt (survey)
#1E488F
ΔE00 6.96
Darkish Blue
#014182
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40477D #7D7640
analogous
#40667D #40477D #58407D
triadic
#40477D #7D4047 #477D40
tetradic
#40477D #7D4066 #7D7640 #407D58
square
#40477D #7D4066 #7D7640 #407D58
split-complementary
#40477D #7D5840 #667D40
monochromatic
#17192C #2B3055 #40477D #555EA5 #7C83BC
Accessibility & contrast
On white
8.69
#40477D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#40477D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40477D
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40477D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40477D | 1.00 | 8.69 | 2.42 | 8.69 |
| #FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#324E7F
Deuteranopia (green-blind)
#2D497C
Tritanopia (blue-blind)
#2A525C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #40477d; /* rgb */ color: rgb(64, 71, 125); /* oklch */ color: oklch(41.8% 0.090 276.2);
Tailwind
colors: {
custom: {
50: '#797aa3',
500: '#40477d',
950: '#000000',
},
}SCSS
$custom: #40477d; $custom-light: #797aa3; $custom-dark: #000000;
JSON
{
"hex": "#40477d",
"rgb": {
"r": 64,
"g": 71,
"b": 125
},
"hsl": {
"h": 233.115,
"s": 32.275,
"l": 37.059
},
"oklch": {
"l": 0.41849,
"c": 0.08992,
"h": 276.2
},
"luminance": 0.07077
}Semantic roles & 50–950 ramp
primary
#40477D
secondary
#A6A073
accent
#BC5FC8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F