#4056E2#4056E2
#4056E2 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.5% C 0.212 H 270.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #4056E2 |
|---|---|
| RGB | rgb(64, 86, 226) |
| HSL | hsl(232, 74%, 57%) |
| HSV | hsv(232, 72%, 89%) |
| CMYK | cmyk(71.7%, 61.9%, 0%, 11.4%) |
| CIE-LAB | lab(43.11, 38.39, -73.51) |
| CIE-LCH | lch(43.11, 82.93, 297.58°) |
| OKLab | oklab(52.48% 0.0012 -0.2123) |
| OKLCH | oklch(52.48% 0.212 270.3) |
| XYZ | xyz(19.1649, 13.2346, 73.4813) |
| Luminance | 0.1324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.31
Electric Blue
#0652FF
ΔE00 3.46
Azul
#1D5DEC
ΔE00 3.66
Dark Periwinkle
#665FD1
ΔE00 5.72
Iris
#6258C4
ΔE00 5.88
Blue (survey)
#0343DF
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4056E2 #E2CC40
analogous
#40A7E2 #4056E2 #7B40E2
triadic
#4056E2 #E24056 #56E240
tetradic
#4056E2 #E240A7 #E2CC40 #40E27B
square
#4056E2 #E240A7 #E2CC40 #40E27B
split-complementary
#4056E2 #E27B40 #A7E240
monochromatic
#162792 #1E35C7 #4056E2 #7585EA #AAB4F2
Accessibility & contrast
On white
5.76
#4056E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#4056E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4056E2
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4056E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4056E2 | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #4056e2; /* rgb */ color: rgb(64, 86, 226); /* oklch */ color: oklch(52.5% 0.212 270.3);
Tailwind
colors: {
custom: {
50: '#8a85ec',
500: '#4056e2',
950: '#000000',
},
}SCSS
$custom: #4056e2; $custom-light: #8a85ec; $custom-dark: #000000;
JSON
{
"hex": "#4056e2",
"rgb": {
"r": 64,
"g": 86,
"b": 226
},
"hsl": {
"h": 231.852,
"s": 73.636,
"l": 56.863
},
"oklch": {
"l": 0.52476,
"c": 0.21234,
"h": 270.3
},
"luminance": 0.13237
}Semantic roles & 50–950 ramp
primary
#4056E2
secondary
#E0D79E
accent
#D738F0
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0D0B16
muted
#7E7C84