#40415B#40415B
#40415B is a dark, muted blue. Relative luminance 0.056; OKLCH L 38.6% C 0.044 H 282.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #40415B |
|---|---|
| RGB | rgb(64, 65, 91) |
| HSL | hsl(238, 17%, 30%) |
| HSV | hsv(238, 30%, 36%) |
| CMYK | cmyk(29.7%, 28.6%, 0%, 64.3%) |
| CIE-LAB | lab(28.45, 6.30, -15.58) |
| CIE-LCH | lch(28.45, 16.80, 292.03°) |
| OKLab | oklab(38.55% 0.0095 -0.043) |
| OKLCH | oklch(38.55% 0.044 282.4) |
| XYZ | xyz(5.8925, 5.6258, 10.6709) |
| Luminance | 0.0563 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk
#4E5481
ΔE00 8.95
Navy Blue
#1B2A4A
ΔE00 9.28
Twilight
#4E518B
ΔE00 10.76
Charcoal
#36454F
ΔE00 12.18
Darkslateblue
#483D8B
ΔE00 12.21
Marine
#042E60
ΔE00 12.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40415B #5B5A40
analogous
#404E5B #40415B #4C405B
triadic
#40415B #5B4041 #415B40
tetradic
#40415B #5B404E #5B5A40 #405B4C
square
#40415B #5B404E #5B5A40 #405B4C
split-complementary
#40415B #5B4C40 #4E5B40
monochromatic
#0D0E13 #272737 #40415B #595B7F #76789F
Accessibility & contrast
On white
9.88
#40415B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#40415B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40415B
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40415B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40415B | 1.00 | 9.88 | 2.13 | 9.88 |
| #FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A445C
Deuteranopia (green-blind)
#39425A
Tritanopia (blue-blind)
#3A464A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #40415b; /* rgb */ color: rgb(64, 65, 91); /* oklch */ color: oklch(38.6% 0.044 282.4);
Tailwind
colors: {
custom: {
50: '#757589',
500: '#40415b',
950: '#000000',
},
}SCSS
$custom: #40415b; $custom-light: #757589; $custom-dark: #000000;
JSON
{
"hex": "#40415b",
"rgb": {
"r": 64,
"g": 65,
"b": 91
},
"hsl": {
"h": 237.778,
"s": 17.419,
"l": 30.392
},
"oklch": {
"l": 0.38552,
"c": 0.04406,
"h": 282.4
},
"luminance": 0.05626
}Semantic roles & 50–950 ramp
primary
#40415B
secondary
#8A896C
accent
#B76EBA
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080B
muted
#7B7B7C