#2A57BA#2A57BA

#2A57BA is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.4% C 0.164 H 263.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#2A57BA
RGBrgb(42, 87, 186)
HSLhsl(221, 63%, 45%)
HSVhsv(221, 77%, 73%)
CMYKcmyk(77.4%, 53.2%, 0%, 27.1%)
CIE-LABlab(39.33, 20.58, -56.65)
CIE-LCHlch(39.33, 60.27, 289.97°)
OKLaboklab(48.42% -0.0194 -0.1632)
OKLCHoklch(48.42% 0.164 263.2)
XYZxyz(13.2228, 10.8523, 47.8427)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57BA #BA8D2A
analogous
#2A9FBA #2A57BA #452ABA
triadic
#2A57BA #BA2A57 #57BA2A
tetradic
#2A57BA #BA2A9F #BA8D2A #2ABA45
square
#2A57BA #BA2A9F #BA8D2A #2ABA45
split-complementary
#2A57BA #BA452A #9FBA2A
monochromatic
#132856 #1F4088 #2A57BA #4B76D6 #7D9CE2

Accessibility & contrast

On white

6.62
#2A57BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2A57BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57BA
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57BA#FFFFFF#000000##FFFFFF
##2A57BA1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BD
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a57ba;
/* rgb */ color: rgb(42, 87, 186);
/* oklch */ color: oklch(48.4% 0.164 263.2);
Tailwind
colors: {
  custom: {
    50: '#7985cf',
    500: '#2a57ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a57ba;
$custom-light: #7985cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57ba",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 221.25,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48419,
    "c": 0.16438,
    "h": 263.2
  },
  "luminance": 0.10854
}

Semantic roles & 50–950 ramp

primary
#2A57BA
secondary
#CAB076
accent
#B342E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A57BA

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

Preview Lab → · Contrast checker → · Palette generator →

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