#40459F#40459F
#40459F is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.144 H 276.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #40459F |
|---|---|
| RGB | rgb(64, 69, 159) |
| HSL | hsl(237, 43%, 44%) |
| HSV | hsv(237, 60%, 62%) |
| CMYK | cmyk(59.7%, 56.6%, 0%, 37.6%) |
| CIE-LAB | lab(33.67, 25.82, -49.73) |
| CIE-LCH | lch(33.67, 56.04, 297.44°) |
| OKLab | oklab(43.84% 0.0158 -0.1426) |
| OKLCH | oklch(43.84% 0.144 276.3) |
| XYZ | xyz(10.4985, 7.8487, 33.7559) |
| Luminance | 0.0785 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.39
Ocean Blue
#4F42B5
ΔE00 4.57
Darkslateblue
#483D8B
ΔE00 4.67
Sapphire (survey)
#2138AB
ΔE00 5.04
Blue Blue
#2242C7
ΔE00 6.03
Cobalt
#0047AB
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40459F #9F9A40
analogous
#40749F #40459F #6A409F
triadic
#40459F #9F4045 #459F40
tetradic
#40459F #9F4074 #9F9A40 #409F6A
square
#40459F #9F4074 #9F9A40 #409F6A
split-complementary
#40459F #9F6A40 #749F40
monochromatic
#1D1F48 #2E3273 #40459F #5E63BE #8A8DD0
Accessibility & contrast
On white
8.17
#40459F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#40459F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40459F
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40459F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40459F | 1.00 | 8.17 | 2.57 | 8.17 |
| #FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #40459f; /* rgb */ color: rgb(64, 69, 159); /* oklch */ color: oklch(43.8% 0.144 276.3);
Tailwind
colors: {
custom: {
50: '#7e78bc',
500: '#40459f',
950: '#000000',
},
}SCSS
$custom: #40459f; $custom-light: #7e78bc; $custom-dark: #000000;
JSON
{
"hex": "#40459f",
"rgb": {
"r": 64,
"g": 69,
"b": 159
},
"hsl": {
"h": 236.842,
"s": 42.601,
"l": 43.725
},
"oklch": {
"l": 0.43838,
"c": 0.14352,
"h": 276.3
},
"luminance": 0.07849
}Semantic roles & 50–950 ramp
primary
#40459F
secondary
#BBB780
accent
#CC55D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81