#2A57B9#2A57B9

#2A57B9 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.163 H 263.1°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#2A57B9
RGBrgb(42, 87, 185)
HSLhsl(221, 63%, 45%)
HSVhsv(221, 77%, 73%)
CMYKcmyk(77.3%, 53%, 0%, 27.5%)
CIE-LABlab(39.26, 20.20, -56.18)
CIE-LCHlch(39.26, 59.70, 289.78°)
OKLaboklab(48.34% -0.0195 -0.1618)
OKLCHoklch(48.34% 0.163 263.1)
XYZxyz(13.1169, 10.8099, 47.2848)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57B9 #B98C2A
analogous
#2A9FB9 #2A57B9 #452AB9
triadic
#2A57B9 #B92A57 #57B92A
tetradic
#2A57B9 #B92A9F #B98C2A #2AB945
square
#2A57B9 #B92A9F #B98C2A #2AB945
split-complementary
#2A57B9 #B9452A #9FB92A
monochromatic
#132855 #1F4087 #2A57B9 #4A76D6 #7C9CE1

Accessibility & contrast

On white

6.64
#2A57B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2A57B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57B9
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57B9#FFFFFF#000000##FFFFFF
##2A57B91.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E63BC
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a57b9;
/* rgb */ color: rgb(42, 87, 185);
/* oklch */ color: oklch(48.3% 0.163 263.1);
Tailwind
colors: {
  custom: {
    50: '#7985cf',
    500: '#2a57b9',
    950: '#000000',
  },
}
SCSS
$custom: #2a57b9;
$custom-light: #7985cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57b9",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 185
  },
  "hsl": {
    "h": 221.119,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48342,
    "c": 0.16302,
    "h": 263.1
  },
  "luminance": 0.10811
}

Semantic roles & 50–950 ramp

primary
#2A57B9
secondary
#CAAF75
accent
#B242E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A57B9

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

Preview Lab → · Contrast checker → · Palette generator →

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