#2A57A4#2A57A4

#2A57A4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.134 H 260.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2A57A4
RGBrgb(42, 87, 164)
HSLhsl(218, 59%, 40%)
HSVhsv(218, 74%, 64%)
CMYKcmyk(74.4%, 47%, 0%, 35.7%)
CIE-LABlab(37.82, 12.13, -46.09)
CIE-LCHlch(37.82, 47.66, 284.75°)
OKLaboklab(46.78% -0.0224 -0.1321)
OKLCHoklch(46.78% 0.134 260.4)
XYZxyz(11.0615, 9.9878, 36.4596)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57A4 #A4772A
analogous
#2A94A4 #2A57A4 #3A2AA4
triadic
#2A57A4 #A42A57 #57A42A
tetradic
#2A57A4 #A42A94 #A4772A #2AA43A
square
#2A57A4 #A42A94 #A4772A #2AA43A
split-complementary
#2A57A4 #A43A2A #94A42A
monochromatic
#112343 #1E3D73 #2A57A4 #3E73CD #6E96DA

Accessibility & contrast

On white

7.01
#2A57A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2A57A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57A4
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57A4#FFFFFF#000000##FFFFFF
##2A57A41.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5FA7
Deuteranopia (green-blind)
#1254A2
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a57a4;
/* rgb */ color: rgb(42, 87, 164);
/* oklch */ color: oklch(46.8% 0.134 260.4);
Tailwind
colors: {
  custom: {
    50: '#7485bf',
    500: '#2a57a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a57a4;
$custom-light: #7485bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57a4",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 164
  },
  "hsl": {
    "h": 217.869,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46784,
    "c": 0.13403,
    "h": 260.4
  },
  "luminance": 0.09989
}

Semantic roles & 50–950 ramp

primary
#2A57A4
secondary
#C1A069
accent
#A845E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A57A4

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

Preview Lab → · Contrast checker → · Palette generator →

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