#40405E#40405E
#40405E is a dark, muted blue. Relative luminance 0.056; OKLCH L 38.5% C 0.051 H 283.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).
Color values
| HEX | #40405E |
|---|---|
| RGB | rgb(64, 64, 94) |
| HSL | hsl(240, 19%, 31%) |
| HSV | hsv(240, 32%, 37%) |
| CMYK | cmyk(31.9%, 31.9%, 0%, 63.1%) |
| CIE-LAB | lab(28.29, 7.84, -17.76) |
| CIE-LCH | lch(28.29, 19.41, 293.81°) |
| OKLab | oklab(38.47% 0.0121 -0.0493) |
| OKLCH | oklch(38.47% 0.051 283.8) |
| XYZ | xyz(5.9676, 5.5648, 11.3472) |
| Luminance | 0.0556 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk
#4E5481
ΔE00 8.41
Navy Blue
#1B2A4A
ΔE00 9.11
Twilight
#4E518B
ΔE00 9.92
Darkslateblue
#483D8B
ΔE00 11.08
Marine
#042E60
ΔE00 11.67
Marine Blue
#01386A
ΔE00 12.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40405E #5E5E40
analogous
#404F5E #40405E #4F405E
triadic
#40405E #5E4040 #405E40
tetradic
#40405E #5E404F #5E5E40 #405E4F
square
#40405E #5E404F #5E5E40 #405E4F
split-complementary
#40405E #5E4F40 #4F5E40
monochromatic
#0E0E15 #27273A #40405E #595982 #7676A2
Accessibility & contrast
On white
9.94
#40405E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#40405E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40405E
9.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40405E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40405E | 1.00 | 9.94 | 2.11 | 9.94 |
| #FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#37445F
Deuteranopia (green-blind)
#36425D
Tritanopia (blue-blind)
#39454B
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #40405e; /* rgb */ color: rgb(64, 64, 94); /* oklch */ color: oklch(38.5% 0.051 283.8);
Tailwind
colors: {
custom: {
50: '#75748b',
500: '#40405e',
950: '#000000',
},
}SCSS
$custom: #40405e; $custom-light: #75748b; $custom-dark: #000000;
JSON
{
"hex": "#40405e",
"rgb": {
"r": 64,
"g": 64,
"b": 94
},
"hsl": {
"h": 240,
"s": 18.987,
"l": 30.98
},
"oklch": {
"l": 0.38474,
"c": 0.05073,
"h": 283.8
},
"luminance": 0.05565
}Semantic roles & 50–950 ramp
primary
#40405E
secondary
#8D8D6C
accent
#BC6CBC
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080C
muted
#7B7B7D