#5A71BF#5A71BF

#5A71BF is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.7% C 0.124 H 269.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5A71BF
RGBrgb(90, 113, 191)
HSLhsl(226, 44%, 55%)
HSVhsv(226, 53%, 75%)
CMYKcmyk(52.9%, 40.8%, 0%, 25.1%)
CIE-LABlab(49.18, 14.04, -43.62)
CIE-LCHlch(49.18, 45.82, 287.84°)
OKLaboklab(56.7% -0.0005 -0.1236)
OKLCHoklch(56.7% 0.124 269.7)
XYZxyz(19.5225, 17.7442, 51.6763)
Luminance0.1775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71BF #BFA85A
analogous
#5AA3BF #5A71BF #765ABF
triadic
#5A71BF #BF5A71 #71BF5A
tetradic
#5A71BF #BF5AA3 #BFA85A #5ABF76
square
#5A71BF #BF5AA3 #BFA85A #5ABF76
split-complementary
#5A71BF #BF765A #A3BF5A
monochromatic
#2C3C72 #3D549E #5A71BF #8697D0 #B2BDE1

Accessibility & contrast

On white

4.62
#5A71BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5A71BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A71BF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71BF#FFFFFF#000000##FFFFFF
##5A71BF1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#517AC2
Deuteranopia (green-blind)
#4671BD
Tritanopia (blue-blind)
#29828F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a71bf;
/* rgb */ color: rgb(90, 113, 191);
/* oklch */ color: oklch(56.7% 0.124 269.7);
Tailwind
colors: {
  custom: {
    50: '#8f99d3',
    500: '#5a71bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a71bf;
$custom-light: #8f99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71bf",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 226.337,
    "s": 44.105,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.12365,
    "h": 269.7
  },
  "luminance": 0.17746
}

Semantic roles & 50–950 ramp

primary
#5A71BF
secondary
#D0C6A5
accent
#B754D4
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5A71BF

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

Preview Lab → · Contrast checker → · Palette generator →

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