#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
RGBrgb(42, 87, 184)
HSLhsl(221, 63%, 44%)
HSVhsv(221, 77%, 72%)
CMYKcmyk(77.2%, 52.7%, 0%, 27.8%)
CIE-LABlab(39.19, 19.82, -55.71)
CIE-LCHlch(39.19, 59.13, 289.58°)
OKLaboklab(48.26% -0.0196 -0.1605)
OKLCHoklch(48.26% 0.162 263)
XYZxyz(13.0117, 10.7678, 46.7307)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##2A57B81.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.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

Preview Lab

Preview with #2A57B8

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A57B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva