#40518F#40518F
#40518F is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.2% C 0.103 H 270.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #40518F |
|---|---|
| RGB | rgb(64, 81, 143) |
| HSL | hsl(227, 38%, 41%) |
| HSV | hsv(227, 55%, 56%) |
| CMYK | cmyk(55.2%, 43.4%, 0%, 43.9%) |
| CIE-LAB | lab(35.90, 12.43, -36.45) |
| CIE-LCH | lch(35.90, 38.51, 288.83°) |
| OKLab | oklab(45.19% 0.0005 -0.1035) |
| OKLCH | oklch(45.19% 0.103 270.3) |
| XYZ | xyz(10.0131, 8.9573, 27.1826) |
| Luminance | 0.0896 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 3.64
Denim Blue
#3B5B92
ΔE00 4.40
Dusky Blue
#475F94
ΔE00 4.77
Dusk
#4E5481
ΔE00 4.89
Cobalt (survey)
#1E488F
ΔE00 5.17
Dusk Blue
#26538D
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40518F #8F7E40
analogous
#40788F #40518F #57408F
triadic
#40518F #8F4051 #518F40
tetradic
#40518F #8F4078 #8F7E40 #408F57
square
#40518F #8F4078 #8F7E40 #408F57
split-complementary
#40518F #8F5740 #788F40
monochromatic
#1A213A #2D3965 #40518F #586CB4 #8291C7
Accessibility & contrast
On white
7.52
#40518F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#40518F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40518F
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40518F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40518F | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#375891
Deuteranopia (green-blind)
#2E518E
Tritanopia (blue-blind)
#185E69
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #40518f; /* rgb */ color: rgb(64, 81, 143); /* oklch */ color: oklch(45.2% 0.103 270.3);
Tailwind
colors: {
custom: {
50: '#7b81b0',
500: '#40518f',
950: '#000000',
},
}SCSS
$custom: #40518f; $custom-light: #7b81b0; $custom-dark: #000000;
JSON
{
"hex": "#40518f",
"rgb": {
"r": 64,
"g": 81,
"b": 143
},
"hsl": {
"h": 227.089,
"s": 38.164,
"l": 40.588
},
"oklch": {
"l": 0.45193,
"c": 0.10349,
"h": 270.3
},
"luminance": 0.08958
}Semantic roles & 50–950 ramp
primary
#40518F
secondary
#B2A579
accent
#B55ACE
background
#F7F7FA
surface
#EEEEF5
border
#C9C9CF
text
#0A0A10
muted
#7C7C7F