#2A56B9#2A56B9
#2A56B9 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.164 H 263.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2A56B9 |
|---|---|
| RGB | rgb(42, 86, 185) |
| HSL | hsl(222, 63%, 45%) |
| HSV | hsv(222, 77%, 73%) |
| CMYK | cmyk(77.3%, 53.5%, 0%, 27.5%) |
| CIE-LAB | lab(38.98, 20.86, -56.63) |
| CIE-LCH | lch(38.98, 60.35, 290.22°) |
| OKLab | oklab(48.13% -0.0188 -0.1632) |
| OKLCH | oklch(48.13% 0.164 263.4) |
| XYZ | xyz(13.0365, 10.6491, 47.2580) |
| Luminance | 0.1065 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.84
Denim
#1560BD
ΔE00 4.46
Cobalt
#0047AB
ΔE00 5.17
Denim Blue
#3B5B92
ΔE00 5.28
Dusk Blue
#26538D
ΔE00 5.92
Dusky Blue
#475F94
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A56B9 #B98D2A
analogous
#2A9EB9 #2A56B9 #452AB9
triadic
#2A56B9 #B92A56 #56B92A
tetradic
#2A56B9 #B92A9E #B98D2A #2AB945
square
#2A56B9 #B92A9E #B98D2A #2AB945
split-complementary
#2A56B9 #B9452A #9EB92A
monochromatic
#132855 #1F3F87 #2A56B9 #4A75D6 #7C9BE1
Accessibility & contrast
On white
6.71
#2A56B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#2A56B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A56B9
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A56B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A56B9 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0763BC
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #2a56b9; /* rgb */ color: rgb(42, 86, 185); /* oklch */ color: oklch(48.1% 0.164 263.4);
Tailwind
colors: {
custom: {
50: '#7985cf',
500: '#2a56b9',
950: '#000000',
},
}SCSS
$custom: #2a56b9; $custom-light: #7985cf; $custom-dark: #000000;
JSON
{
"hex": "#2a56b9",
"rgb": {
"r": 42,
"g": 86,
"b": 185
},
"hsl": {
"h": 221.538,
"s": 62.996,
"l": 44.51
},
"oklch": {
"l": 0.48133,
"c": 0.16426,
"h": 263.4
},
"luminance": 0.10651
}Semantic roles & 50–950 ramp
primary
#2A56B9
secondary
#CAB075
accent
#B342E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82