#2A57B5#2A57B5
#2A57B5 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.158 H 262.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2A57B5 |
|---|---|
| RGB | rgb(42, 87, 181) |
| HSL | hsl(221, 62%, 44%) |
| HSV | hsv(221, 77%, 71%) |
| CMYK | cmyk(76.8%, 51.9%, 0%, 29%) |
| CIE-LAB | lab(38.97, 18.67, -54.30) |
| CIE-LCH | lch(38.97, 57.41, 288.97°) |
| OKLab | oklab(48.03% -0.02 -0.1563) |
| OKLCH | oklch(48.03% 0.158 262.7) |
| XYZ | xyz(12.7005, 10.6434, 45.0921) |
| Luminance | 0.1065 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.98
Denim
#1560BD
ΔE00 4.03
Denim Blue
#3B5B92
ΔE00 4.71
Cobalt
#0047AB
ΔE00 5.29
Dusk Blue
#26538D
ΔE00 5.38
Light Navy Blue
#2E5A88
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A57B5 #B5882A
analogous
#2A9CB5 #2A57B5 #432AB5
triadic
#2A57B5 #B52A57 #57B52A
tetradic
#2A57B5 #B52A9C #B5882A #2AB543
square
#2A57B5 #B52A9C #B5882A #2AB543
split-complementary
#2A57B5 #B5432A #9CB52A
monochromatic
#132752 #1E3F83 #2A57B5 #4875D4 #799BE0
Accessibility & contrast
On white
6.71
#2A57B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#2A57B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A57B5
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A57B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A57B5 | 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)
#1862B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #2a57b5; /* rgb */ color: rgb(42, 87, 181); /* oklch */ color: oklch(48.0% 0.158 262.7);
Tailwind
colors: {
custom: {
50: '#7885cc',
500: '#2a57b5',
950: '#000000',
},
}SCSS
$custom: #2a57b5; $custom-light: #7885cc; $custom-dark: #000000;
JSON
{
"hex": "#2a57b5",
"rgb": {
"r": 42,
"g": 87,
"b": 181
},
"hsl": {
"h": 220.576,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.48034,
"c": 0.15757,
"h": 262.7
},
"luminance": 0.10645
}Semantic roles & 50–950 ramp
primary
#2A57B5
secondary
#C8AC73
accent
#B142E5
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82