#2D57AB#2D57AB

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

Color values

HEX#2D57AB
RGBrgb(45, 87, 171)
HSLhsl(220, 58%, 42%)
HSVhsv(220, 74%, 67%)
CMYKcmyk(73.7%, 49.1%, 0%, 32.9%)
CIE-LABlab(38.40, 15.22, -49.31)
CIE-LCHlch(38.40, 51.61, 287.16°)
OKLaboklab(47.41% -0.019 -0.1416)
OKLCHoklch(47.41% 0.143 262.4)
XYZxyz(11.8384, 10.3133, 39.8869)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D57AB #AB812D
analogous
#2D96AB #2D57AB #422DAB
triadic
#2D57AB #AB2D57 #57AB2D
tetradic
#2D57AB #AB2D96 #AB812D #2DAB42
square
#2D57AB #AB2D96 #AB812D #2DAB42
split-complementary
#2D57AB #AB422D #96AB2D
monochromatic
#14264A #203E7B #2D57AB #4774CE #7799DB

Accessibility & contrast

On white

6.86
#2D57AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D57AB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D57AB#FFFFFF#000000##FFFFFF
##2D57AB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d57ab;
/* rgb */ color: rgb(45, 87, 171);
/* oklch */ color: oklch(47.4% 0.143 262.4);
Tailwind
colors: {
  custom: {
    50: '#7785c5',
    500: '#2d57ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d57ab;
$custom-light: #7785c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d57ab",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 171
  },
  "hsl": {
    "h": 220,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47408,
    "c": 0.14286,
    "h": 262.4
  },
  "luminance": 0.10315
}

Semantic roles & 50–950 ramp

primary
#2D57AB
secondary
#C3A871
accent
#AE46E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D57AB

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

Preview Lab → · Contrast checker → · Palette generator →

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