#40476F#40476F
#40476F is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.068 H 275.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).
Color values
| HEX | #40476F |
|---|---|
| RGB | rgb(64, 71, 111) |
| HSL | hsl(231, 27%, 34%) |
| HSV | hsv(231, 42%, 44%) |
| CMYK | cmyk(42.3%, 36%, 0%, 56.5%) |
| CIE-LAB | lab(31.22, 8.39, -24.04) |
| CIE-LCH | lch(31.22, 25.46, 289.25°) |
| OKLab | oklab(41.01% 0.0064 -0.0674) |
| OKLCH | oklch(41.01% 0.068 275.4) |
| XYZ | xyz(7.2360, 6.7438, 15.9563) |
| Luminance | 0.0674 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk
#4E5481
ΔE00 4.81
Twilight
#4E518B
ΔE00 5.80
Darkslateblue
#483D8B
ΔE00 8.12
Blueberry
#464196
ΔE00 8.67
Cobalt (survey)
#1E488F
ΔE00 8.89
Twilight Blue
#0A437A
ΔE00 9.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40476F #6F6840
analogous
#405F6F #40476F #51406F
triadic
#40476F #6F4047 #476F40
tetradic
#40476F #6F405F #6F6840 #406F51
square
#40476F #6F405F #6F6840 #406F51
split-complementary
#40476F #6F5140 #5F6F40
monochromatic
#131521 #2A2E48 #40476F #566096 #7881B1
Accessibility & contrast
On white
8.94
#40476F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#40476F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40476F
8.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40476F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40476F | 1.00 | 8.94 | 2.35 | 8.94 |
| #FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#394B71
Deuteranopia (green-blind)
#36486E
Tritanopia (blue-blind)
#314F56
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #40476f; /* rgb */ color: rgb(64, 71, 111); /* oklch */ color: oklch(41.0% 0.068 275.4);
Tailwind
colors: {
custom: {
50: '#777a98',
500: '#40476f',
950: '#000000',
},
}SCSS
$custom: #40476f; $custom-light: #777a98; $custom-dark: #000000;
JSON
{
"hex": "#40476f",
"rgb": {
"r": 64,
"g": 71,
"b": 111
},
"hsl": {
"h": 231.064,
"s": 26.857,
"l": 34.314
},
"oklch": {
"l": 0.41012,
"c": 0.06767,
"h": 275.4
},
"luminance": 0.06744
}Semantic roles & 50–950 ramp
primary
#40476F
secondary
#9C956F
accent
#B565C3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090D
muted
#7B7B7E