#404879#404879
#404879 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.082 H 275.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #404879 |
|---|---|
| RGB | rgb(64, 72, 121) |
| HSL | hsl(232, 31%, 36%) |
| HSV | hsv(232, 47%, 47%) |
| CMYK | cmyk(47.1%, 40.5%, 0%, 52.5%) |
| CIE-LAB | lab(32.04, 10.95, -29.01) |
| CIE-LCH | lch(32.04, 31.01, 290.68°) |
| OKLab | oklab(41.82% 0.0075 -0.0818) |
| OKLCH | oklch(41.82% 0.082 275.3) |
| XYZ | xyz(7.8818, 7.1048, 19.0415) |
| Luminance | 0.0711 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 4.18
Dusk
#4E5481
ΔE00 4.27
Darkslateblue
#483D8B
ΔE00 6.61
Blueberry
#464196
ΔE00 6.81
Cobalt (survey)
#1E488F
ΔE00 7.30
Denim Blue
#3B5B92
ΔE00 8.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#404879 #797140
analogous
#406579 #404879 #554079
triadic
#404879 #794048 #487940
tetradic
#404879 #794065 #797140 #407955
square
#404879 #794065 #797140 #407955
split-complementary
#404879 #795540 #657940
monochromatic
#161829 #2B3051 #404879 #5560A1 #7A83B9
Accessibility & contrast
On white
8.67
#404879 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#404879 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #404879
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##404879 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##404879 | 1.00 | 8.67 | 2.42 | 8.67 |
| #FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#364E7B
Deuteranopia (green-blind)
#314978
Tritanopia (blue-blind)
#2C525A
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #404879; /* rgb */ color: rgb(64, 72, 121); /* oklch */ color: oklch(41.8% 0.082 275.3);
Tailwind
colors: {
custom: {
50: '#787aa0',
500: '#404879',
950: '#000000',
},
}SCSS
$custom: #404879; $custom-light: #787aa0; $custom-dark: #000000;
JSON
{
"hex": "#404879",
"rgb": {
"r": 64,
"g": 72,
"b": 121
},
"hsl": {
"h": 231.579,
"s": 30.811,
"l": 36.275
},
"oklch": {
"l": 0.41824,
"c": 0.08215,
"h": 275.3
},
"luminance": 0.07105
}Semantic roles & 50–950 ramp
primary
#404879
secondary
#A49C71
accent
#B961C7
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090E
muted
#7B7B7E