#4056AB#4056AB
#4056AB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.138 H 269.7°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #4056AB |
|---|---|
| RGB | rgb(64, 86, 171) |
| HSL | hsl(228, 46%, 46%) |
| HSV | hsv(228, 63%, 67%) |
| CMYK | cmyk(62.6%, 49.7%, 0%, 32.9%) |
| CIE-LAB | lab(39.04, 18.96, -48.23) |
| CIE-LCH | lch(39.04, 51.82, 291.46°) |
| OKLab | oklab(48.15% -0.0008 -0.138) |
| OKLCH | oklch(48.15% 0.138 269.7) |
| XYZ | xyz(12.7903, 10.6848, 39.9085) |
| Luminance | 0.1069 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.47
Denim Blue
#3B5B92
ΔE00 4.57
Dusky Blue
#475F94
ΔE00 4.78
Cobalt
#0047AB
ΔE00 6.12
Dusk Blue
#26538D
ΔE00 6.26
Denim
#1560BD
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4056AB #AB9540
analogous
#408BAB #4056AB #5F40AB
triadic
#4056AB #AB4056 #56AB40
tetradic
#4056AB #AB408B #AB9540 #40AB5F
square
#4056AB #AB408B #AB9540 #40AB5F
split-complementary
#4056AB #AB5F40 #8BAB40
monochromatic
#1F2952 #2F407E #4056AB #6377C5 #909ED5
Accessibility & contrast
On white
6.69
#4056AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#4056AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4056AB
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4056AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4056AB | 1.00 | 6.69 | 3.14 | 6.69 |
| #FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2961AE
Deuteranopia (green-blind)
#1257A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #4056ab; /* rgb */ color: rgb(64, 86, 171); /* oklch */ color: oklch(48.2% 0.138 269.7);
Tailwind
colors: {
custom: {
50: '#7f85c4',
500: '#4056ab',
950: '#000000',
},
}SCSS
$custom: #4056ab; $custom-light: #7f85c4; $custom-dark: #000000;
JSON
{
"hex": "#4056ab",
"rgb": {
"r": 64,
"g": 86,
"b": 171
},
"hsl": {
"h": 227.664,
"s": 45.532,
"l": 46.078
},
"oklch": {
"l": 0.48152,
"c": 0.13803,
"h": 269.7
},
"luminance": 0.10686
}Semantic roles & 50–950 ramp
primary
#4056AB
secondary
#C1B586
accent
#BA53D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82