#40488F#40488F
#40488F is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.3% C 0.116 H 275.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).
Color values
| HEX | #40488F |
|---|---|
| RGB | rgb(64, 72, 143) |
| HSL | hsl(234, 38%, 41%) |
| HSV | hsv(234, 55%, 56%) |
| CMYK | cmyk(55.2%, 49.7%, 0%, 43.9%) |
| CIE-LAB | lab(33.37, 18.34, -40.50) |
| CIE-LCH | lch(33.37, 44.46, 294.37°) |
| OKLab | oklab(43.26% 0.0113 -0.1155) |
| OKLCH | oklch(43.26% 0.116 275.6) |
| XYZ | xyz(9.3881, 7.7073, 26.9742) |
| Luminance | 0.0771 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.49
Twilight
#4E518B
ΔE00 4.06
Darkslateblue
#483D8B
ΔE00 4.69
Cobalt (survey)
#1E488F
ΔE00 5.72
Dusk
#4E5481
ΔE00 6.22
Cobalt
#0047AB
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40488F #8F8740
analogous
#406F8F #40488F #5F408F
triadic
#40488F #8F4048 #488F40
tetradic
#40488F #8F406F #8F8740 #408F5F
square
#40488F #8F406F #8F8740 #408F5F
split-complementary
#40488F #8F5F40 #6F8F40
monochromatic
#1A1D3A #2D3365 #40488F #5861B4 #8289C7
Accessibility & contrast
On white
8.26
#40488F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#40488F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40488F
8.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40488F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40488F | 1.00 | 8.26 | 2.54 | 8.26 |
| #FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#265292
Deuteranopia (green-blind)
#1D4B8D
Tritanopia (blue-blind)
#1A5864
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #40488f; /* rgb */ color: rgb(64, 72, 143); /* oklch */ color: oklch(43.3% 0.116 275.6);
Tailwind
colors: {
custom: {
50: '#7b7ab0',
500: '#40488f',
950: '#000000',
},
}SCSS
$custom: #40488f; $custom-light: #7b7ab0; $custom-dark: #000000;
JSON
{
"hex": "#40488f",
"rgb": {
"r": 64,
"g": 72,
"b": 143
},
"hsl": {
"h": 233.924,
"s": 38.164,
"l": 40.588
},
"oklch": {
"l": 0.4326,
"c": 0.11601,
"h": 275.6
},
"luminance": 0.07708
}Semantic roles & 50–950 ramp
primary
#40488F
secondary
#B2AC79
accent
#C25ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F