#4056AC#4056AC
#4056AC is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.139 H 269.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).
Color values
| HEX | #4056AC |
|---|---|
| RGB | rgb(64, 86, 172) |
| HSL | hsl(228, 46%, 46%) |
| HSV | hsv(228, 63%, 67%) |
| CMYK | cmyk(62.8%, 50%, 0%, 32.5%) |
| CIE-LAB | lab(39.11, 19.32, -48.71) |
| CIE-LCH | lch(39.11, 52.40, 291.63°) |
| OKLab | oklab(48.22% -0.0006 -0.1395) |
| OKLCH | oklch(48.22% 0.139 269.7) |
| XYZ | xyz(12.8860, 10.7230, 40.4124) |
| Luminance | 0.1072 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.43
Denim Blue
#3B5B92
ΔE00 4.68
Dusky Blue
#475F94
ΔE00 4.88
Cobalt
#0047AB
ΔE00 6.12
Dusk Blue
#26538D
ΔE00 6.36
Denim
#1560BD
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4056AC #AC9640
analogous
#408CAC #4056AC #6040AC
triadic
#4056AC #AC4056 #56AC40
tetradic
#4056AC #AC408C #AC9640 #40AC60
square
#4056AC #AC408C #AC9640 #40AC60
split-complementary
#4056AC #AC6040 #8CAC40
monochromatic
#1F2953 #2F407F #4056AC #6478C5 #919FD6
Accessibility & contrast
On white
6.68
#4056AC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#4056AC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4056AC
6.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4056AC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4056AC | 1.00 | 6.68 | 3.14 | 6.68 |
| #FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#0F58AA
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #4056ac; /* rgb */ color: rgb(64, 86, 172); /* oklch */ color: oklch(48.2% 0.139 269.7);
Tailwind
colors: {
custom: {
50: '#7f85c5',
500: '#4056ac',
950: '#000000',
},
}SCSS
$custom: #4056ac; $custom-light: #7f85c5; $custom-dark: #000000;
JSON
{
"hex": "#4056ac",
"rgb": {
"r": 64,
"g": 86,
"b": 172
},
"hsl": {
"h": 227.778,
"s": 45.763,
"l": 46.275
},
"oklch": {
"l": 0.48223,
"c": 0.13946,
"h": 269.7
},
"luminance": 0.10724
}Semantic roles & 50–950 ramp
primary
#4056AC
secondary
#C1B587
accent
#BB52D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82