#2A57AC#2A57AC

#2A57AC is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.145 H 261.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2A57AC
RGBrgb(42, 87, 172)
HSLhsl(219, 61%, 42%)
HSVhsv(219, 76%, 67%)
CMYKcmyk(75.6%, 49.4%, 0%, 32.5%)
CIE-LABlab(38.35, 15.21, -49.99)
CIE-LCHlch(38.35, 52.25, 286.92°)
OKLaboklab(47.36% -0.0211 -0.1436)
OKLCHoklch(47.36% 0.145 261.6)
XYZxyz(11.8068, 10.2859, 40.3848)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57AC #AC7F2A
analogous
#2A98AC #2A57AC #3E2AAC
triadic
#2A57AC #AC2A57 #57AC2A
tetradic
#2A57AC #AC2A98 #AC7F2A #2AAC3E
square
#2A57AC #AC2A98 #AC7F2A #2AAC3E
split-complementary
#2A57AC #AC3E2A #98AC2A
monochromatic
#12254A #1E3E7B #2A57AC #4274D1 #7398DD

Accessibility & contrast

On white

6.87
#2A57AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2A57AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57AC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57AC#FFFFFF#000000##FFFFFF
##2A57AC1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2661AF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a57ac;
/* rgb */ color: rgb(42, 87, 172);
/* oklch */ color: oklch(47.4% 0.145 261.6);
Tailwind
colors: {
  custom: {
    50: '#7685c5',
    500: '#2a57ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a57ac;
$custom-light: #7685c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57ac",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 219.231,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47361,
    "c": 0.14517,
    "h": 261.6
  },
  "luminance": 0.10287
}

Semantic roles & 50–950 ramp

primary
#2A57AC
secondary
#C4A66D
accent
#AD44E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A57AC

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

Preview Lab → · Contrast checker → · Palette generator →

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