#40507A#40507A
#40507A is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.073 H 267.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).
Color values
| HEX | #40507A |
|---|---|
| RGB | rgb(64, 80, 122) |
| HSL | hsl(223, 31%, 36%) |
| HSV | hsv(223, 48%, 48%) |
| CMYK | cmyk(47.5%, 34.4%, 0%, 52.2%) |
| CIE-LAB | lab(34.46, 6.04, -25.83) |
| CIE-LCH | lch(34.46, 26.52, 283.17°) |
| OKLab | oklab(43.71% -0.0032 -0.0725) |
| OKLCH | oklch(43.71% 0.073 267.5) |
| XYZ | xyz(8.4947, 8.2320, 19.5499) |
| Luminance | 0.0823 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk
#4E5481
ΔE00 3.59
Twilight
#4E518B
ΔE00 4.56
Denim Blue
#3B5B92
ΔE00 5.77
Dusky Blue
#475F94
ΔE00 6.08
Dusk Blue
#26538D
ΔE00 6.30
Cobalt (survey)
#1E488F
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40507A #7A6A40
analogous
#406D7A #40507A #4D407A
triadic
#40507A #7A4050 #507A40
tetradic
#40507A #7A406D #7A6A40 #407A4D
square
#40507A #7A406D #7A6A40 #407A4D
split-complementary
#40507A #7A4D40 #6D7A40
monochromatic
#161B2A #2B3652 #40507A #556AA2 #7B8CBA
Accessibility & contrast
On white
7.94
#40507A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.65
#40507A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40507A
7.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40507A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40507A | 1.00 | 7.94 | 2.65 | 7.94 |
| #FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#41547C
Deuteranopia (green-blind)
#3B4F79
Tritanopia (blue-blind)
#2A595F
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #40507a; /* rgb */ color: rgb(64, 80, 122); /* oklch */ color: oklch(43.7% 0.073 267.5);
Tailwind
colors: {
custom: {
50: '#7880a0',
500: '#40507a',
950: '#000000',
},
}SCSS
$custom: #40507a; $custom-light: #7880a0; $custom-dark: #000000;
JSON
{
"hex": "#40507a",
"rgb": {
"r": 64,
"g": 80,
"b": 122
},
"hsl": {
"h": 223.448,
"s": 31.183,
"l": 36.471
},
"oklch": {
"l": 0.43707,
"c": 0.07259,
"h": 267.5
},
"luminance": 0.08232
}Semantic roles & 50–950 ramp
primary
#40507A
secondary
#A49672
accent
#AB60C7
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#090A0F
muted
#7B7C7E