#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
RGBrgb(42, 87, 181)
HSLhsl(221, 62%, 44%)
HSVhsv(221, 77%, 71%)
CMYKcmyk(76.8%, 51.9%, 0%, 29%)
CIE-LABlab(38.97, 18.67, -54.30)
CIE-LCHlch(38.97, 57.41, 288.97°)
OKLaboklab(48.03% -0.02 -0.1563)
OKLCHoklch(48.03% 0.158 262.7)
XYZxyz(12.7005, 10.6434, 45.0921)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##2A57B51.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.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

Preview Lab

Preview with #2A57B5

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

Preview Lab → · Contrast checker → · Palette generator →

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