#40456E#40456E
#40456E is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.069 H 277.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).
Color values
| HEX | #40456E |
|---|---|
| RGB | rgb(64, 69, 110) |
| HSL | hsl(233, 26%, 34%) |
| HSV | hsv(233, 42%, 43%) |
| CMYK | cmyk(41.8%, 37.3%, 0%, 56.9%) |
| CIE-LAB | lab(30.57, 9.40, -24.41) |
| CIE-LCH | lch(30.57, 26.16, 291.05°) |
| OKLab | oklab(40.5% 0.0091 -0.0685) |
| OKLCH | oklch(40.5% 0.069 277.5) |
| XYZ | xyz(7.0561, 6.4717, 15.6262) |
| Luminance | 0.0647 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk
#4E5481
ΔE00 5.30
Twilight
#4E518B
ΔE00 6.09
Darkslateblue
#483D8B
ΔE00 7.85
Blueberry
#464196
ΔE00 8.62
Cobalt (survey)
#1E488F
ΔE00 9.33
Twilight Blue
#0A437A
ΔE00 9.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40456E #6E6940
analogous
#405C6E #40456E #52406E
triadic
#40456E #6E4045 #456E40
tetradic
#40456E #6E405C #6E6940 #406E52
square
#40456E #6E405C #6E6940 #406E52
split-complementary
#40456E #6E5240 #5C6E40
monochromatic
#131421 #292D47 #40456E #575D95 #787EB0
Accessibility & contrast
On white
9.15
#40456E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#40456E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40456E
9.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40456E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40456E | 1.00 | 9.15 | 2.29 | 9.15 |
| #FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#374A70
Deuteranopia (green-blind)
#34466D
Tritanopia (blue-blind)
#324D54
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #40456e; /* rgb */ color: rgb(64, 69, 110); /* oklch */ color: oklch(40.5% 0.069 277.5);
Tailwind
colors: {
custom: {
50: '#777898',
500: '#40456e',
950: '#000000',
},
}SCSS
$custom: #40456e; $custom-light: #777898; $custom-dark: #000000;
JSON
{
"hex": "#40456e",
"rgb": {
"r": 64,
"g": 69,
"b": 110
},
"hsl": {
"h": 233.478,
"s": 26.437,
"l": 34.118
},
"oklch": {
"l": 0.40499,
"c": 0.06906,
"h": 277.5
},
"luminance": 0.06472
}Semantic roles & 50–950 ramp
primary
#40456E
secondary
#9B976E
accent
#B965C3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090D
muted
#7B7B7E