#40477A#40477A
#40477A is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.7% C 0.085 H 276.1°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #40477A |
|---|---|
| RGB | rgb(64, 71, 122) |
| HSL | hsl(233, 31%, 36%) |
| HSV | hsv(233, 48%, 48%) |
| CMYK | cmyk(47.5%, 41.8%, 0%, 52.2%) |
| CIE-LAB | lab(31.81, 11.94, -30.00) |
| CIE-LCH | lch(31.81, 32.29, 291.70°) |
| OKLab | oklab(41.66% 0.0091 -0.0847) |
| OKLCH | oklch(41.66% 0.085 276.1) |
| XYZ | xyz(7.8794, 7.0012, 19.3448) |
| Luminance | 0.0700 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 4.17
Dusk
#4E5481
ΔE00 4.56
Darkslateblue
#483D8B
ΔE00 6.15
Blueberry
#464196
ΔE00 6.41
Cobalt (survey)
#1E488F
ΔE00 7.31
Darkish Blue
#014182
ΔE00 8.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40477A #7A7340
analogous
#40647A #40477A #56407A
triadic
#40477A #7A4047 #477A40
tetradic
#40477A #7A4064 #7A7340 #407A56
square
#40477A #7A4064 #7A7340 #407A56
split-complementary
#40477A #7A5640 #647A40
monochromatic
#16182A #2B3052 #40477A #555EA2 #7B82BA
Accessibility & contrast
On white
8.75
#40477A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#40477A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40477A
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40477A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40477A | 1.00 | 8.75 | 2.40 | 8.75 |
| #FFFFFF | 8.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#344D7C
Deuteranopia (green-blind)
#2F4979
Tritanopia (blue-blind)
#2C525A
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #40477a; /* rgb */ color: rgb(64, 71, 122); /* oklch */ color: oklch(41.7% 0.085 276.1);
Tailwind
colors: {
custom: {
50: '#787aa1',
500: '#40477a',
950: '#000000',
},
}SCSS
$custom: #40477a; $custom-light: #787aa1; $custom-dark: #000000;
JSON
{
"hex": "#40477a",
"rgb": {
"r": 64,
"g": 71,
"b": 122
},
"hsl": {
"h": 232.759,
"s": 31.183,
"l": 36.471
},
"oklch": {
"l": 0.41662,
"c": 0.08521,
"h": 276.1
},
"luminance": 0.07002
}Semantic roles & 50–950 ramp
primary
#40477A
secondary
#A49E72
accent
#BB60C7
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090F
muted
#7B7B7E