#5A71B2#5A71B2

#5A71B2 is a mid, moderate blue. Relative luminance 0.172; OKLCH L 56.0% C 0.105 H 268.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5A71B2
RGBrgb(90, 113, 178)
HSLhsl(224, 36%, 53%)
HSVhsv(224, 49%, 70%)
CMYKcmyk(49.4%, 36.5%, 0%, 30.2%)
CIE-LABlab(48.51, 9.90, -37.17)
CIE-LCHlch(48.51, 38.47, 284.92°)
OKLaboklab(55.95% -0.0034 -0.1048)
OKLCHoklch(55.95% 0.105 268.1)
XYZxyz(18.1549, 17.1971, 44.4736)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71B2 #B29B5A
analogous
#5A9DB2 #5A71B2 #6F5AB2
triadic
#5A71B2 #B25A71 #71B25A
tetradic
#5A71B2 #B25A9D #B29B5A #5AB26F
square
#5A71B2 #B25A9D #B29B5A #5AB26F
split-complementary
#5A71B2 #B26F5A #9DB25A
monochromatic
#2E3C63 #42558D #5A71B2 #8495C5 #ADB9D9

Accessibility & contrast

On white

4.73
#5A71B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5A71B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A71B2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71B2#FFFFFF#000000##FFFFFF
##5A71B21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5877B5
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#357F89
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a71b2;
/* rgb */ color: rgb(90, 113, 178);
/* oklch */ color: oklch(56.0% 0.105 268.1);
Tailwind
colors: {
  custom: {
    50: '#8e99c9',
    500: '#5a71b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a71b2;
$custom-light: #8e99c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71b2",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 224.318,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55953,
    "c": 0.10488,
    "h": 268.1
  },
  "luminance": 0.17198
}

Semantic roles & 50–950 ramp

primary
#5A71B2
secondary
#C7BDA1
accent
#AF5BCC
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0D0D13
muted
#7D7E82

Preview Lab

Preview with #5A71B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5A71B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva