#4056B2#4056B2
#4056B2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.7% C 0.148 H 270.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).
Color values
| HEX | #4056B2 |
|---|---|
| RGB | rgb(64, 86, 178) |
| HSL | hsl(228, 47%, 47%) |
| HSV | hsv(228, 64%, 70%) |
| CMYK | cmyk(64%, 51.7%, 0%, 30.2%) |
| CIE-LAB | lab(39.51, 21.45, -51.61) |
| CIE-LCH | lch(39.51, 55.89, 292.56°) |
| OKLab | oklab(48.66% 0 -0.148) |
| OKLCH | oklch(48.66% 0.148 270) |
| XYZ | xyz(13.4753, 10.9587, 43.5160) |
| Luminance | 0.1096 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.28
Denim Blue
#3B5B92
ΔE00 5.36
Dusky Blue
#475F94
ΔE00 5.51
Warm Blue
#4B57DB
ΔE00 6.15
Cobalt
#0047AB
ΔE00 6.23
Denim
#1560BD
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4056B2 #B29C40
analogous
#408FB2 #4056B2 #6340B2
triadic
#4056B2 #B24056 #56B240
tetradic
#4056B2 #B2408F #B29C40 #40B263
square
#4056B2 #B2408F #B29C40 #40B263
split-complementary
#4056B2 #B26340 #8FB240
monochromatic
#202B58 #304085 #4056B2 #677AC8 #94A1D8
Accessibility & contrast
On white
6.58
#4056B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#4056B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4056B2
6.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4056B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4056B2 | 1.00 | 6.58 | 3.19 | 6.58 |
| #FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #4056b2; /* rgb */ color: rgb(64, 86, 178); /* oklch */ color: oklch(48.7% 0.148 270.0);
Tailwind
colors: {
custom: {
50: '#8185ca',
500: '#4056b2',
950: '#000000',
},
}SCSS
$custom: #4056b2; $custom-light: #8185ca; $custom-dark: #000000;
JSON
{
"hex": "#4056b2",
"rgb": {
"r": 64,
"g": 86,
"b": 178
},
"hsl": {
"h": 228.421,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.48655,
"c": 0.14799,
"h": 270
},
"luminance": 0.1096
}Semantic roles & 50–950 ramp
primary
#4056B2
secondary
#C4B98A
accent
#BD51D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82