#2A57B9#2A57B9
#2A57B9 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.163 H 263.1°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2A57B9 |
|---|---|
| RGB | rgb(42, 87, 185) |
| HSL | hsl(221, 63%, 45%) |
| HSV | hsv(221, 77%, 73%) |
| CMYK | cmyk(77.3%, 53%, 0%, 27.5%) |
| CIE-LAB | lab(39.26, 20.20, -56.18) |
| CIE-LCH | lch(39.26, 59.70, 289.78°) |
| OKLab | oklab(48.34% -0.0195 -0.1618) |
| OKLCH | oklch(48.34% 0.163 263.1) |
| XYZ | xyz(13.1169, 10.8099, 47.2848) |
| Luminance | 0.1081 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.00
Denim
#1560BD
ΔE00 4.12
Denim Blue
#3B5B92
ΔE00 5.16
Cobalt
#0047AB
ΔE00 5.44
Dusk Blue
#26538D
ΔE00 5.89
Dusky Blue
#475F94
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A57B9 #B98C2A
analogous
#2A9FB9 #2A57B9 #452AB9
triadic
#2A57B9 #B92A57 #57B92A
tetradic
#2A57B9 #B92A9F #B98C2A #2AB945
square
#2A57B9 #B92A9F #B98C2A #2AB945
split-complementary
#2A57B9 #B9452A #9FB92A
monochromatic
#132855 #1F4087 #2A57B9 #4A76D6 #7C9CE1
Accessibility & contrast
On white
6.64
#2A57B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#2A57B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A57B9
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A57B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A57B9 | 1.00 | 6.64 | 3.16 | 6.64 |
| #FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E63BC
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #2a57b9; /* rgb */ color: rgb(42, 87, 185); /* oklch */ color: oklch(48.3% 0.163 263.1);
Tailwind
colors: {
custom: {
50: '#7985cf',
500: '#2a57b9',
950: '#000000',
},
}SCSS
$custom: #2a57b9; $custom-light: #7985cf; $custom-dark: #000000;
JSON
{
"hex": "#2a57b9",
"rgb": {
"r": 42,
"g": 87,
"b": 185
},
"hsl": {
"h": 221.119,
"s": 62.996,
"l": 44.51
},
"oklch": {
"l": 0.48342,
"c": 0.16302,
"h": 263.1
},
"luminance": 0.10811
}Semantic roles & 50–950 ramp
primary
#2A57B9
secondary
#CAAF75
accent
#B242E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82