#2A57B2#2A57B2

#2A57B2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.153 H 262.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2A57B2
RGBrgb(42, 87, 178)
HSLhsl(220, 62%, 43%)
HSVhsv(220, 76%, 70%)
CMYKcmyk(76.4%, 51.1%, 0%, 30.2%)
CIE-LABlab(38.76, 17.52, -52.87)
CIE-LCHlch(38.76, 55.70, 288.33°)
OKLaboklab(47.81% -0.0203 -0.1521)
OKLCHoklch(47.81% 0.153 262.4)
XYZxyz(12.3960, 10.5216, 43.4884)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57B2 #B2852A
analogous
#2A9BB2 #2A57B2 #412AB2
triadic
#2A57B2 #B22A57 #57B22A
tetradic
#2A57B2 #B22A9B #B2852A #2AB241
square
#2A57B2 #B22A9B #B2852A #2AB241
split-complementary
#2A57B2 #B2412A #9BB22A
monochromatic
#13274F #1E3F80 #2A57B2 #4675D3 #779ADF

Accessibility & contrast

On white

6.76
#2A57B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2A57B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57B2
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57B2#FFFFFF#000000##FFFFFF
##2A57B21.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a57b2;
/* rgb */ color: rgb(42, 87, 178);
/* oklch */ color: oklch(47.8% 0.153 262.4);
Tailwind
colors: {
  custom: {
    50: '#7785ca',
    500: '#2a57b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a57b2;
$custom-light: #7785ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57b2",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 220.147,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47807,
    "c": 0.15345,
    "h": 262.4
  },
  "luminance": 0.10523
}

Semantic roles & 50–950 ramp

primary
#2A57B2
secondary
#C7AA71
accent
#AF43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A57B2

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

Preview Lab → · Contrast checker → · Palette generator →

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