#2A56B2#2A56B2
#2A56B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.155 H 262.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2A56B2 |
|---|---|
| RGB | rgb(42, 86, 178) |
| HSL | hsl(221, 62%, 43%) |
| HSV | hsv(221, 76%, 70%) |
| CMYK | cmyk(76.4%, 51.7%, 0%, 30.2%) |
| CIE-LAB | lab(38.48, 18.18, -53.32) |
| CIE-LCH | lch(38.48, 56.34, 288.82°) |
| OKLab | oklab(47.59% -0.0195 -0.1535) |
| OKLCH | oklch(47.59% 0.155 262.8) |
| XYZ | xyz(12.3156, 10.3608, 43.4616) |
| Luminance | 0.1036 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.89
Denim
#1560BD
ΔE00 4.35
Denim Blue
#3B5B92
ΔE00 4.51
Cobalt
#0047AB
ΔE00 4.92
Dusk Blue
#26538D
ΔE00 5.01
Light Navy Blue
#2E5A88
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A56B2 #B2862A
analogous
#2A9AB2 #2A56B2 #422AB2
triadic
#2A56B2 #B22A56 #56B22A
tetradic
#2A56B2 #B22A9A #B2862A #2AB242
square
#2A56B2 #B22A9A #B2862A #2AB242
split-complementary
#2A56B2 #B2422A #9AB22A
monochromatic
#13264F #1E3E80 #2A56B2 #4674D3 #7799DF
Accessibility & contrast
On white
6.84
#2A56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#2A56B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A56B2
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A56B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A56B2 | 1.00 | 6.84 | 3.07 | 6.84 |
| #FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2a56b2; /* rgb */ color: rgb(42, 86, 178); /* oklch */ color: oklch(47.6% 0.155 262.8);
Tailwind
colors: {
custom: {
50: '#7785ca',
500: '#2a56b2',
950: '#000000',
},
}SCSS
$custom: #2a56b2; $custom-light: #7785ca; $custom-dark: #000000;
JSON
{
"hex": "#2a56b2",
"rgb": {
"r": 42,
"g": 86,
"b": 178
},
"hsl": {
"h": 220.588,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.47593,
"c": 0.1547,
"h": 262.8
},
"luminance": 0.10362
}Semantic roles & 50–950 ramp
primary
#2A56B2
secondary
#C7AB71
accent
#B043E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82