#40459C#40459C
#40459C is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.139 H 276.5°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).
Color values
| HEX | #40459C |
|---|---|
| RGB | rgb(64, 69, 156) |
| HSL | hsl(237, 42%, 43%) |
| HSV | hsv(237, 59%, 61%) |
| CMYK | cmyk(59%, 55.8%, 0%, 38.8%) |
| CIE-LAB | lab(33.45, 24.79, -48.27) |
| CIE-LCH | lch(33.45, 54.26, 297.18°) |
| OKLab | oklab(43.61% 0.0157 -0.1384) |
| OKLCH | oklch(43.61% 0.139 276.5) |
| XYZ | xyz(10.2413, 7.7458, 32.4015) |
| Luminance | 0.0775 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.19
Darkslateblue
#483D8B
ΔE00 4.39
Ocean Blue
#4F42B5
ΔE00 4.97
Sapphire (survey)
#2138AB
ΔE00 5.28
Twilight
#4E518B
ΔE00 6.03
Cobalt
#0047AB
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40459C #9C9740
analogous
#40739C #40459C #69409C
triadic
#40459C #9C4045 #459C40
tetradic
#40459C #9C4073 #9C9740 #409C69
square
#40459C #9C4073 #9C9740 #409C69
split-complementary
#40459C #9C6940 #739C40
monochromatic
#1C1F45 #2E3271 #40459C #5D62BC #888CCE
Accessibility & contrast
On white
8.24
#40459C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#40459C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40459C
8.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40459C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40459C | 1.00 | 8.24 | 2.55 | 8.24 |
| #FFFFFF | 8.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#08539F
Deuteranopia (green-blind)
#004B9A
Tritanopia (blue-blind)
#015969
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #40459c; /* rgb */ color: rgb(64, 69, 156); /* oklch */ color: oklch(43.6% 0.139 276.5);
Tailwind
colors: {
custom: {
50: '#7e78ba',
500: '#40459c',
950: '#000000',
},
}SCSS
$custom: #40459c; $custom-light: #7e78ba; $custom-dark: #000000;
JSON
{
"hex": "#40459c",
"rgb": {
"r": 64,
"g": 69,
"b": 156
},
"hsl": {
"h": 236.739,
"s": 41.818,
"l": 43.137
},
"oklch": {
"l": 0.43606,
"c": 0.13925,
"h": 276.5
},
"luminance": 0.07747
}Semantic roles & 50–950 ramp
primary
#40459C
secondary
#B9B67F
accent
#CB56D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0912
muted
#7C7B81