#2A57A8#2A57A8

#2A57A8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.140 H 261.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2A57A8
RGBrgb(42, 87, 168)
HSLhsl(219, 60%, 41%)
HSVhsv(219, 75%, 66%)
CMYKcmyk(75%, 48.2%, 0%, 34.1%)
CIE-LABlab(38.08, 13.67, -48.05)
CIE-LCHlch(38.08, 49.95, 285.88°)
OKLaboklab(47.07% -0.0217 -0.1379)
OKLCHoklch(47.07% 0.14 261.1)
XYZxyz(11.4284, 10.1345, 38.3920)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57A8 #A87B2A
analogous
#2A96A8 #2A57A8 #3C2AA8
triadic
#2A57A8 #A82A57 #57A82A
tetradic
#2A57A8 #A82A96 #A87B2A #2AA83C
square
#2A57A8 #A82A96 #A87B2A #2AA83C
split-complementary
#2A57A8 #A83C2A #96A82A
monochromatic
#122446 #1E3E77 #2A57A8 #4073CF #7197DB

Accessibility & contrast

On white

6.94
#2A57A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2A57A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57A8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57A8#FFFFFF#000000##FFFFFF
##2A57A81.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AB
Deuteranopia (green-blind)
#0454A6
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a57a8;
/* rgb */ color: rgb(42, 87, 168);
/* oklch */ color: oklch(47.1% 0.140 261.1);
Tailwind
colors: {
  custom: {
    50: '#7585c2',
    500: '#2a57a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a57a8;
$custom-light: #7585c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57a8",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 168
  },
  "hsl": {
    "h": 218.571,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47069,
    "c": 0.13961,
    "h": 261.1
  },
  "luminance": 0.10136
}

Semantic roles & 50–950 ramp

primary
#2A57A8
secondary
#C3A36B
accent
#AB45E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2A57A8

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

Preview Lab → · Contrast checker → · Palette generator →

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