#40478B#40478B
#40478B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.8% C 0.111 H 276.2°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).
Color values
| HEX | #40478B |
|---|---|
| RGB | rgb(64, 71, 139) |
| HSL | hsl(234, 37%, 40%) |
| HSV | hsv(234, 54%, 55%) |
| CMYK | cmyk(54%, 48.9%, 0%, 45.5%) |
| CIE-LAB | lab(32.83, 17.64, -38.90) |
| CIE-LCH | lch(32.83, 42.71, 294.39°) |
| OKLab | oklab(42.77% 0.012 -0.1108) |
| OKLCH | oklch(42.77% 0.111 276.2) |
| XYZ | xyz(9.0263, 7.4600, 25.3854) |
| Luminance | 0.0746 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.63
Twilight
#4E518B
ΔE00 3.98
Darkslateblue
#483D8B
ΔE00 4.45
Cobalt (survey)
#1E488F
ΔE00 5.96
Dusk
#4E5481
ΔE00 6.00
Cobalt
#0047AB
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40478B #8B8440
analogous
#406D8B #40478B #5F408B
triadic
#40478B #8B4047 #478B40
tetradic
#40478B #8B406D #8B8440 #408B5F
square
#40478B #8B406D #8B8440 #408B5F
split-complementary
#40478B #8B5F40 #6D8B40
monochromatic
#191C37 #2D3261 #40478B #575FB2 #8187C5
Accessibility & contrast
On white
8.43
#40478B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#40478B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40478B
8.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40478B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40478B | 1.00 | 8.43 | 2.49 | 8.43 |
| #FFFFFF | 8.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28508D
Deuteranopia (green-blind)
#204A8A
Tritanopia (blue-blind)
#1F5662
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #40478b; /* rgb */ color: rgb(64, 71, 139); /* oklch */ color: oklch(42.8% 0.111 276.2);
Tailwind
colors: {
custom: {
50: '#7b7aad',
500: '#40478b',
950: '#000000',
},
}SCSS
$custom: #40478b; $custom-light: #7b7aad; $custom-dark: #000000;
JSON
{
"hex": "#40478b",
"rgb": {
"r": 64,
"g": 71,
"b": 139
},
"hsl": {
"h": 234.4,
"s": 36.946,
"l": 39.804
},
"oklch": {
"l": 0.42773,
"c": 0.11143,
"h": 276.2
},
"luminance": 0.07461
}Semantic roles & 50–950 ramp
primary
#40478B
secondary
#AFAA78
accent
#C25BCD
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F