#40489E#40489E
#40489E is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.4% C 0.138 H 275.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).
Color values
| HEX | #40489E |
|---|---|
| RGB | rgb(64, 72, 158) |
| HSL | hsl(235, 42%, 44%) |
| HSV | hsv(235, 59%, 62%) |
| CMYK | cmyk(59.5%, 54.4%, 0%, 38%) |
| CIE-LAB | lab(34.38, 23.52, -47.97) |
| CIE-LCH | lch(34.38, 53.43, 296.12°) |
| OKLab | oklab(44.35% 0.0127 -0.1374) |
| OKLCH | oklch(44.35% 0.138 275.3) |
| XYZ | xyz(10.6013, 8.1925, 33.3638) |
| Luminance | 0.0819 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.08
Ocean Blue
#4F42B5
ΔE00 5.24
Darkslateblue
#483D8B
ΔE00 5.24
Twilight
#4E518B
ΔE00 5.66
Sapphire (survey)
#2138AB
ΔE00 5.79
Cobalt
#0047AB
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40489E #9E9640
analogous
#40779E #40489E #67409E
triadic
#40489E #9E4048 #489E40
tetradic
#40489E #9E4077 #9E9640 #409E67
square
#40489E #9E4077 #9E9640 #409E67
split-complementary
#40489E #9E6740 #779E40
monochromatic
#1D2047 #2E3472 #40489E #5E66BE #898FCF
Accessibility & contrast
On white
7.96
#40489E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#40489E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40489E
7.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40489E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40489E | 1.00 | 7.96 | 2.64 | 7.96 |
| #FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1255A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #40489e; /* rgb */ color: rgb(64, 72, 158); /* oklch */ color: oklch(44.4% 0.138 275.3);
Tailwind
colors: {
custom: {
50: '#7e7abb',
500: '#40489e',
950: '#000000',
},
}SCSS
$custom: #40489e; $custom-light: #7e7abb; $custom-dark: #000000;
JSON
{
"hex": "#40489e",
"rgb": {
"r": 64,
"g": 72,
"b": 158
},
"hsl": {
"h": 234.894,
"s": 42.342,
"l": 43.529
},
"oklch": {
"l": 0.4435,
"c": 0.13803,
"h": 275.3
},
"luminance": 0.08193
}Semantic roles & 50–950 ramp
primary
#40489E
secondary
#BAB580
accent
#C856D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81