#40488E#40488E
#40488E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.2% C 0.115 H 275.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #40488E |
|---|---|
| RGB | rgb(64, 72, 142) |
| HSL | hsl(234, 38%, 40%) |
| HSV | hsv(234, 55%, 56%) |
| CMYK | cmyk(54.9%, 49.3%, 0%, 44.3%) |
| CIE-LAB | lab(33.30, 18.00, -39.99) |
| CIE-LCH | lch(33.30, 43.85, 294.23°) |
| OKLab | oklab(43.19% 0.0112 -0.114) |
| OKLCH | oklch(43.19% 0.115 275.6) |
| XYZ | xyz(9.3126, 7.6771, 26.5770) |
| Luminance | 0.0768 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.59
Twilight
#4E518B
ΔE00 3.98
Darkslateblue
#483D8B
ΔE00 4.71
Cobalt (survey)
#1E488F
ΔE00 5.73
Dusk
#4E5481
ΔE00 6.10
Cobalt
#0047AB
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40488E #8E8640
analogous
#406F8E #40488E #5F408E
triadic
#40488E #8E4048 #488E40
tetradic
#40488E #8E406F #8E8640 #408E5F
square
#40488E #8E406F #8E8640 #408E5F
split-complementary
#40488E #8E5F40 #6F8E40
monochromatic
#1A1D3A #2D3364 #40488E #5861B4 #8289C7
Accessibility & contrast
On white
8.28
#40488E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#40488E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40488E
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40488E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40488E | 1.00 | 8.28 | 2.54 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#1E4B8C
Tritanopia (blue-blind)
#1B5764
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #40488e; /* rgb */ color: rgb(64, 72, 142); /* oklch */ color: oklch(43.2% 0.115 275.6);
Tailwind
colors: {
custom: {
50: '#7b7aaf',
500: '#40488e',
950: '#000000',
},
}SCSS
$custom: #40488e; $custom-light: #7b7aaf; $custom-dark: #000000;
JSON
{
"hex": "#40488e",
"rgb": {
"r": 64,
"g": 72,
"b": 142
},
"hsl": {
"h": 233.846,
"s": 37.864,
"l": 40.392
},
"oklch": {
"l": 0.4319,
"c": 0.11452,
"h": 275.6
},
"luminance": 0.07678
}Semantic roles & 50–950 ramp
primary
#40488E
secondary
#B1AB79
accent
#C25ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F