#2A57B8#2A57B8
#2A57B8 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.162 H 263.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2A57B8 |
|---|---|
| RGB | rgb(42, 87, 184) |
| HSL | hsl(221, 63%, 44%) |
| HSV | hsv(221, 77%, 72%) |
| CMYK | cmyk(77.2%, 52.7%, 0%, 27.8%) |
| CIE-LAB | lab(39.19, 19.82, -55.71) |
| CIE-LCH | lch(39.19, 59.13, 289.58°) |
| OKLab | oklab(48.26% -0.0196 -0.1605) |
| OKLCH | oklch(48.26% 0.162 263) |
| XYZ | xyz(13.0117, 10.7678, 46.7307) |
| Luminance | 0.1077 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.98
Denim
#1560BD
ΔE00 4.09
Denim Blue
#3B5B92
ΔE00 5.04
Cobalt
#0047AB
ΔE00 5.40
Dusk Blue
#26538D
ΔE00 5.76
Dusky Blue
#475F94
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A57B8 #B88B2A
analogous
#2A9EB8 #2A57B8 #442AB8
triadic
#2A57B8 #B82A57 #57B82A
tetradic
#2A57B8 #B82A9E #B88B2A #2AB844
square
#2A57B8 #B82A9E #B88B2A #2AB844
split-complementary
#2A57B8 #B8442A #9EB82A
monochromatic
#132854 #1F3F86 #2A57B8 #4A76D6 #7B9CE1
Accessibility & contrast
On white
6.66
#2A57B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#2A57B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A57B8
6.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A57B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A57B8 | 1.00 | 6.66 | 3.15 | 6.66 |
| #FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1163BB
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #2a57b8; /* rgb */ color: rgb(42, 87, 184); /* oklch */ color: oklch(48.3% 0.162 263.0);
Tailwind
colors: {
custom: {
50: '#7985ce',
500: '#2a57b8',
950: '#000000',
},
}SCSS
$custom: #2a57b8; $custom-light: #7985ce; $custom-dark: #000000;
JSON
{
"hex": "#2a57b8",
"rgb": {
"r": 42,
"g": 87,
"b": 184
},
"hsl": {
"h": 220.986,
"s": 62.832,
"l": 44.314
},
"oklch": {
"l": 0.48264,
"c": 0.16167,
"h": 263
},
"luminance": 0.10769
}Semantic roles & 50–950 ramp
primary
#2A57B8
secondary
#C9AE75
accent
#B242E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82