#2A57A2#2A57A2

#2A57A2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.131 H 260.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#2A57A2
RGBrgb(42, 87, 162)
HSLhsl(218, 59%, 40%)
HSVhsv(218, 74%, 64%)
CMYKcmyk(74.1%, 46.3%, 0%, 36.5%)
CIE-LABlab(37.69, 11.36, -45.10)
CIE-LCHlch(37.69, 46.51, 284.14°)
OKLaboklab(46.64% -0.0227 -0.1292)
OKLCHoklch(46.64% 0.131 260)
XYZxyz(10.8823, 9.9161, 35.5159)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57A2 #A2752A
analogous
#2A93A2 #2A57A2 #392AA2
triadic
#2A57A2 #A22A57 #57A22A
tetradic
#2A57A2 #A22A93 #A2752A #2AA239
square
#2A57A2 #A22A93 #A2752A #2AA239
split-complementary
#2A57A2 #A2392A #93A22A
monochromatic
#112341 #1D3D71 #2A57A2 #3D73CD #6D96D9

Accessibility & contrast

On white

7.04
#2A57A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2A57A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A57A2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57A2#FFFFFF#000000##FFFFFF
##2A57A21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305FA5
Deuteranopia (green-blind)
#1654A0
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a57a2;
/* rgb */ color: rgb(42, 87, 162);
/* oklch */ color: oklch(46.6% 0.131 260.0);
Tailwind
colors: {
  custom: {
    50: '#7485be',
    500: '#2a57a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a57a2;
$custom-light: #7485be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57a2",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 217.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46643,
    "c": 0.13123,
    "h": 260
  },
  "luminance": 0.09917
}

Semantic roles & 50–950 ramp

primary
#2A57A2
secondary
#C09F68
accent
#A746E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A57A2

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

Preview Lab → · Contrast checker → · Palette generator →

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