#2D57A4#2D57A4

#2D57A4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 46.9% C 0.133 H 261.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2D57A4
RGBrgb(45, 87, 164)
HSLhsl(219, 57%, 41%)
HSVhsv(219, 73%, 64%)
CMYKcmyk(72.6%, 47%, 0%, 35.7%)
CIE-LABlab(37.94, 12.56, -45.89)
CIE-LCHlch(37.94, 47.58, 285.30°)
OKLaboklab(46.91% -0.0201 -0.1315)
OKLCHoklch(46.91% 0.133 261.3)
XYZxyz(11.1888, 10.0534, 36.4656)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D57A4 #A47A2D
analogous
#2D92A4 #2D57A4 #3F2DA4
triadic
#2D57A4 #A42D57 #57A42D
tetradic
#2D57A4 #A42D92 #A47A2D #2DA43F
square
#2D57A4 #A42D92 #A47A2D #2DA43F
split-complementary
#2D57A4 #A43F2D #92A42D
monochromatic
#132444 #203E74 #2D57A4 #4373CB #7397D9

Accessibility & contrast

On white

6.97
#2D57A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2D57A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D57A4
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D57A4#FFFFFF#000000##FFFFFF
##2D57A41.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d57a4;
/* rgb */ color: rgb(45, 87, 164);
/* oklch */ color: oklch(46.9% 0.133 261.3);
Tailwind
colors: {
  custom: {
    50: '#7585bf',
    500: '#2d57a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d57a4;
$custom-light: #7585bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d57a4",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 164
  },
  "hsl": {
    "h": 218.824,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46907,
    "c": 0.13304,
    "h": 261.3
  },
  "luminance": 0.10055
}

Semantic roles & 50–950 ramp

primary
#2D57A4
secondary
#C0A36D
accent
#AA48E0
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D57A4

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

Preview Lab → · Contrast checker → · Palette generator →

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