#4040D9#4040D9
#4040D9 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.225 H 273.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #4040D9 |
|---|---|
| RGB | rgb(64, 64, 217) |
| HSL | hsl(240, 67%, 55%) |
| HSV | hsv(240, 71%, 85%) |
| CMYK | cmyk(70.5%, 70.5%, 0%, 14.9%) |
| CIE-LAB | lab(37.42, 48.50, -77.72) |
| CIE-LCH | lch(37.42, 91.61, 301.97°) |
| OKLab | oklab(48.09% 0.0154 -0.2247) |
| OKLCH | oklch(48.09% 0.225 273.9) |
| XYZ | xyz(16.4680, 9.7649, 66.6491) |
| Luminance | 0.0977 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 3.38
Blue (survey)
#0343DF
ΔE00 3.39
Blurple
#5539CC
ΔE00 3.43
Vibrant Blue
#0339F8
ΔE00 3.76
Blue Blue
#2242C7
ΔE00 4.10
Purpley Blue
#5F34E7
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4040D9 #D9D940
analogous
#408CD9 #4040D9 #8C40D9
triadic
#4040D9 #D94040 #40D940
tetradic
#4040D9 #D9408C #D9D940 #40D98C
square
#4040D9 #D9408C #D9D940 #40D98C
split-complementary
#4040D9 #D98C40 #8CD940
monochromatic
#1A1A84 #2424B7 #4040D9 #7373E3 #A6A6ED
Accessibility & contrast
On white
7.11
#4040D9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#4040D9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4040D9
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4040D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4040D9 | 1.00 | 7.11 | 2.95 | 7.11 |
| #FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0051D6
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #4040d9; /* rgb */ color: rgb(64, 64, 217); /* oklch */ color: oklch(48.1% 0.225 273.9);
Tailwind
colors: {
custom: {
50: '#8a76e6',
500: '#4040d9',
950: '#000000',
},
}SCSS
$custom: #4040d9; $custom-light: #8a76e6; $custom-dark: #000000;
JSON
{
"hex": "#4040d9",
"rgb": {
"r": 64,
"g": 64,
"b": 217
},
"hsl": {
"h": 240,
"s": 66.812,
"l": 55.098
},
"oklch": {
"l": 0.48091,
"c": 0.22525,
"h": 273.9
},
"luminance": 0.09767
}Semantic roles & 50–950 ramp
primary
#4040D9
secondary
#DADA9A
accent
#EA3EEA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84