#2A56BA#2A56BA
#2A56BA is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.166 H 263.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2A56BA |
|---|---|
| RGB | rgb(42, 86, 186) |
| HSL | hsl(222, 63%, 45%) |
| HSV | hsv(222, 77%, 73%) |
| CMYK | cmyk(77.4%, 53.8%, 0%, 27.1%) |
| CIE-LAB | lab(39.06, 21.24, -57.10) |
| CIE-LCH | lch(39.06, 60.92, 290.41°) |
| OKLab | oklab(48.21% -0.0187 -0.1646) |
| OKLCH | oklch(48.21% 0.166 263.5) |
| XYZ | xyz(13.1424, 10.6915, 47.8159) |
| Luminance | 0.1069 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.87
Denim
#1560BD
ΔE00 4.49
Cobalt
#0047AB
ΔE00 5.23
Denim Blue
#3B5B92
ΔE00 5.39
Dusk Blue
#26538D
ΔE00 6.05
Dusky Blue
#475F94
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A56BA #BA8E2A
analogous
#2A9EBA #2A56BA #462ABA
triadic
#2A56BA #BA2A56 #56BA2A
tetradic
#2A56BA #BA2A9E #BA8E2A #2ABA46
square
#2A56BA #BA2A9E #BA8E2A #2ABA46
split-complementary
#2A56BA #BA462A #9EBA2A
monochromatic
#132856 #1F3F88 #2A56BA #4B75D6 #7D9CE2
Accessibility & contrast
On white
6.69
#2A56BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#2A56BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A56BA
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A56BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A56BA | 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)
#0363BE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #2a56ba; /* rgb */ color: rgb(42, 86, 186); /* oklch */ color: oklch(48.2% 0.166 263.5);
Tailwind
colors: {
custom: {
50: '#7985cf',
500: '#2a56ba',
950: '#000000',
},
}SCSS
$custom: #2a56ba; $custom-light: #7985cf; $custom-dark: #000000;
JSON
{
"hex": "#2a56ba",
"rgb": {
"r": 42,
"g": 86,
"b": 186
},
"hsl": {
"h": 221.667,
"s": 63.158,
"l": 44.706
},
"oklch": {
"l": 0.48211,
"c": 0.16562,
"h": 263.5
},
"luminance": 0.10693
}Semantic roles & 50–950 ramp
primary
#2A56BA
secondary
#CAB076
accent
#B442E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82