#2A57AA#2A57AA

#2A57AA is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.142 H 261.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#2A57AA
RGBrgb(42, 87, 170)
HSLhsl(219, 60%, 42%)
HSVhsv(219, 75%, 67%)
CMYKcmyk(75.3%, 48.8%, 0%, 33.3%)
CIE-LABlab(38.22, 14.44, -49.02)
CIE-LCHlch(38.22, 51.10, 286.41°)
OKLaboklab(47.21% -0.0214 -0.1408)
OKLCHoklch(47.21% 0.142 261.4)
XYZxyz(11.6161, 10.2096, 39.3809)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57AA #AA7D2A
analogous
#2A97AA #2A57AA #3D2AAA
triadic
#2A57AA #AA2A57 #57AA2A
tetradic
#2A57AA #AA2A97 #AA7D2A #2AAA3D
square
#2A57AA #AA2A97 #AA7D2A #2AAA3D
split-complementary
#2A57AA #AA3D2A #97AA2A
monochromatic
#122548 #1E3E79 #2A57AA #4173D0 #7297DC

Accessibility & contrast

On white

6.90
#2A57AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2A57AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57AA
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57AA#FFFFFF#000000##FFFFFF
##2A57AA1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a57aa;
/* rgb */ color: rgb(42, 87, 170);
/* oklch */ color: oklch(47.2% 0.142 261.4);
Tailwind
colors: {
  custom: {
    50: '#7685c4',
    500: '#2a57aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a57aa;
$custom-light: #7685c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57aa",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 170
  },
  "hsl": {
    "h": 218.906,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47214,
    "c": 0.1424,
    "h": 261.4
  },
  "luminance": 0.10211
}

Semantic roles & 50–950 ramp

primary
#2A57AA
secondary
#C3A56C
accent
#AC44E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A57AA

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

Preview Lab → · Contrast checker → · Palette generator →

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