#5A71BB#5A71BB

#5A71BB is a mid, moderate blue. Relative luminance 0.176; OKLCH L 56.5% C 0.118 H 269.3°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5A71BB
RGBrgb(90, 113, 187)
HSLhsl(226, 42%, 54%)
HSVhsv(226, 52%, 73%)
CMYKcmyk(51.9%, 39.6%, 0%, 26.7%)
CIE-LABlab(48.97, 12.76, -41.65)
CIE-LCHlch(48.97, 43.56, 287.03°)
OKLaboklab(56.46% -0.0014 -0.1179)
OKLCHoklch(56.46% 0.118 269.3)
XYZxyz(19.0883, 17.5705, 49.3897)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71BB #BBA45A
analogous
#5AA2BB #5A71BB #745ABB
triadic
#5A71BB #BB5A71 #71BB5A
tetradic
#5A71BB #BB5AA2 #BBA45A #5ABB74
square
#5A71BB #BB5AA2 #BBA45A #5ABB74
split-complementary
#5A71BB #BB745A #A2BB5A
monochromatic
#2D3C6D #3F5499 #5A71BB #8596CD #B1BCDF

Accessibility & contrast

On white

4.65
#5A71BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#5A71BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A71BB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71BB#FFFFFF#000000##FFFFFF
##5A71BB1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5479BE
Deuteranopia (green-blind)
#4970B9
Tritanopia (blue-blind)
#2E818D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a71bb;
/* rgb */ color: rgb(90, 113, 187);
/* oklch */ color: oklch(56.5% 0.118 269.3);
Tailwind
colors: {
  custom: {
    50: '#8f99d0',
    500: '#5a71bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a71bb;
$custom-light: #8f99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71bb",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 225.773,
    "s": 41.631,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56462,
    "c": 0.1179,
    "h": 269.3
  },
  "luminance": 0.17572
}

Semantic roles & 50–950 ramp

primary
#5A71BB
secondary
#CDC3A4
accent
#B456D1
background
#F9F9FC
surface
#F1F2F9
border
#CBCCD2
text
#0D0D14
muted
#7E7E82

Preview Lab

Preview with #5A71BB

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

Preview Lab → · Contrast checker → · Palette generator →

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