#2A56C2#2A56C2
#2A56C2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.8% C 0.176 H 264.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2A56C2 |
|---|---|
| RGB | rgb(42, 86, 194) |
| HSL | hsl(223, 64%, 46%) |
| HSV | hsv(223, 78%, 76%) |
| CMYK | cmyk(78.4%, 55.7%, 0%, 23.9%) |
| CIE-LAB | lab(39.65, 24.29, -60.80) |
| CIE-LCH | lch(39.65, 65.48, 291.78°) |
| OKLab | oklab(48.85% -0.018 -0.1755) |
| OKLCH | oklch(48.85% 0.176 264.1) |
| XYZ | xyz(14.0168, 11.0412, 52.4209) |
| Luminance | 0.1104 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.44
Denim
#1560BD
ΔE00 4.84
Azul
#1D5DEC
ΔE00 5.60
Cobalt
#0047AB
ΔE00 5.75
Warm Blue
#4B57DB
ΔE00 5.80
Denim Blue
#3B5B92
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A56C2 #C2962A
analogous
#2AA2C2 #2A56C2 #4A2AC2
triadic
#2A56C2 #C22A56 #56C22A
tetradic
#2A56C2 #C22AA2 #C2962A #2AC24A
square
#2A56C2 #C22AA2 #C2962A #2AC24A
split-complementary
#2A56C2 #C24A2A #A2C22A
monochromatic
#14295D #1F4090 #2A56C2 #5078D9 #829FE4
Accessibility & contrast
On white
6.54
#2A56C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#2A56C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A56C2
6.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A56C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A56C2 | 1.00 | 6.54 | 3.21 | 6.54 |
| #FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #2a56c2; /* rgb */ color: rgb(42, 86, 194); /* oklch */ color: oklch(48.8% 0.176 264.1);
Tailwind
colors: {
custom: {
50: '#7b85d5',
500: '#2a56c2',
950: '#000000',
},
}SCSS
$custom: #2a56c2; $custom-light: #7b85d5; $custom-dark: #000000;
JSON
{
"hex": "#2a56c2",
"rgb": {
"r": 42,
"g": 86,
"b": 194
},
"hsl": {
"h": 222.632,
"s": 64.407,
"l": 46.275
},
"oklch": {
"l": 0.48847,
"c": 0.17638,
"h": 264.1
},
"luminance": 0.11043
}Semantic roles & 50–950 ramp
primary
#2A56C2
secondary
#CDB57B
accent
#B740E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83