#2A56B5#2A56B5
#2A56B5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.159 H 263.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2A56B5 |
|---|---|
| RGB | rgb(42, 86, 181) |
| HSL | hsl(221, 62%, 44%) |
| HSV | hsv(221, 77%, 71%) |
| CMYK | cmyk(76.8%, 52.5%, 0%, 29%) |
| CIE-LAB | lab(38.70, 19.33, -54.75) |
| CIE-LCH | lch(38.70, 58.06, 289.44°) |
| OKLab | oklab(47.82% -0.0192 -0.1576) |
| OKLCH | oklch(47.82% 0.159 263.1) |
| XYZ | xyz(12.6201, 10.4826, 45.0653) |
| Luminance | 0.1048 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.80
Denim
#1560BD
ΔE00 4.37
Denim Blue
#3B5B92
ΔE00 4.83
Cobalt
#0047AB
ΔE00 5.01
Dusk Blue
#26538D
ΔE00 5.40
Light Navy Blue
#2E5A88
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A56B5 #B5892A
analogous
#2A9BB5 #2A56B5 #432AB5
triadic
#2A56B5 #B52A56 #56B52A
tetradic
#2A56B5 #B52A9B #B5892A #2AB543
square
#2A56B5 #B52A9B #B5892A #2AB543
split-complementary
#2A56B5 #B5432A #9BB52A
monochromatic
#132752 #1E3E83 #2A56B5 #4874D4 #799AE0
Accessibility & contrast
On white
6.78
#2A56B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#2A56B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A56B5
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A56B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A56B5 | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1462B8
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2a56b5; /* rgb */ color: rgb(42, 86, 181); /* oklch */ color: oklch(47.8% 0.159 263.1);
Tailwind
colors: {
custom: {
50: '#7885cc',
500: '#2a56b5',
950: '#000000',
},
}SCSS
$custom: #2a56b5; $custom-light: #7885cc; $custom-dark: #000000;
JSON
{
"hex": "#2a56b5",
"rgb": {
"r": 42,
"g": 86,
"b": 181
},
"hsl": {
"h": 221.007,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.47823,
"c": 0.1588,
"h": 263.1
},
"luminance": 0.10484
}Semantic roles & 50–950 ramp
primary
#2A56B5
secondary
#C8AD73
accent
#B242E5
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0A13
muted
#7C7C82