#404C8A#404C8A
#404C8A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.8% C 0.103 H 273.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #404C8A |
|---|---|
| RGB | rgb(64, 76, 138) |
| HSL | hsl(230, 37%, 40%) |
| HSV | hsv(230, 54%, 54%) |
| CMYK | cmyk(53.6%, 44.9%, 0%, 45.9%) |
| CIE-LAB | lab(34.18, 14.00, -36.14) |
| CIE-LCH | lch(34.18, 38.76, 291.17°) |
| OKLab | oklab(43.78% 0.0057 -0.1026) |
| OKLCH | oklch(43.78% 0.103 273.2) |
| XYZ | xyz(9.2848, 8.0932, 25.1127) |
| Luminance | 0.0809 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 3.18
Dusk
#4E5481
ΔE00 4.78
Blueberry
#464196
ΔE00 5.32
Cobalt (survey)
#1E488F
ΔE00 5.41
Denim Blue
#3B5B92
ΔE00 6.22
Darkslateblue
#483D8B
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#404C8A #8A7E40
analogous
#40718A #404C8A #59408A
triadic
#404C8A #8A404C #4C8A40
tetradic
#404C8A #8A4071 #8A7E40 #408A59
square
#404C8A #8A4071 #8A7E40 #408A59
split-complementary
#404C8A #8A5940 #718A40
monochromatic
#191E36 #2D3560 #404C8A #5665B1 #808BC4
Accessibility & contrast
On white
8.02
#404C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#404C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #404C8A
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##404C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##404C8A | 1.00 | 8.02 | 2.62 | 8.02 |
| #FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#2A4D89
Tritanopia (blue-blind)
#1F5964
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #404c8a; /* rgb */ color: rgb(64, 76, 138); /* oklch */ color: oklch(43.8% 0.103 273.2);
Tailwind
colors: {
custom: {
50: '#7a7dac',
500: '#404c8a',
950: '#000000',
},
}SCSS
$custom: #404c8a; $custom-light: #7a7dac; $custom-dark: #000000;
JSON
{
"hex": "#404c8a",
"rgb": {
"r": 64,
"g": 76,
"b": 138
},
"hsl": {
"h": 230.27,
"s": 36.634,
"l": 39.608
},
"oklch": {
"l": 0.43776,
"c": 0.1028,
"h": 273.2
},
"luminance": 0.08094
}Semantic roles & 50–950 ramp
primary
#404C8A
secondary
#AFA677
accent
#BA5BCD
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0910
muted
#7C7B7F