#2A57B6#2A57B6

#2A57B6 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.159 H 262.8°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#2A57B6
RGBrgb(42, 87, 182)
HSLhsl(221, 63%, 44%)
HSVhsv(221, 77%, 71%)
CMYKcmyk(76.9%, 52.2%, 0%, 28.6%)
CIE-LABlab(39.04, 19.05, -54.77)
CIE-LCHlch(39.04, 57.99, 289.18°)
OKLaboklab(48.11% -0.0198 -0.1577)
OKLCHoklch(48.11% 0.159 262.8)
XYZxyz(12.8035, 10.6846, 45.6344)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57B6 #B6892A
analogous
#2A9DB6 #2A57B6 #432AB6
triadic
#2A57B6 #B62A57 #57B62A
tetradic
#2A57B6 #B62A9D #B6892A #2AB643
square
#2A57B6 #B62A9D #B6892A #2AB643
split-complementary
#2A57B6 #B6432A #9DB62A
monochromatic
#132753 #1F3F84 #2A57B6 #4876D5 #7A9BE0

Accessibility & contrast

On white

6.69
#2A57B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2A57B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57B6
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57B6#FFFFFF#000000##FFFFFF
##2A57B61.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1663B9
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a57b6;
/* rgb */ color: rgb(42, 87, 182);
/* oklch */ color: oklch(48.1% 0.159 262.8);
Tailwind
colors: {
  custom: {
    50: '#7885cd',
    500: '#2a57b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a57b6;
$custom-light: #7885cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57b6",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 182
  },
  "hsl": {
    "h": 220.714,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48111,
    "c": 0.15893,
    "h": 262.8
  },
  "luminance": 0.10686
}

Semantic roles & 50–950 ramp

primary
#2A57B6
secondary
#C8AD73
accent
#B142E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A57B6

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

Preview Lab → · Contrast checker → · Palette generator →

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