#5A71DB#5A71DB

#5A71DB is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.5% C 0.163 H 271.3°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5A71DB
RGBrgb(90, 113, 219)
HSLhsl(229, 64%, 61%)
HSVhsv(229, 59%, 86%)
CMYKcmyk(58.9%, 48.4%, 0%, 14.1%)
CIE-LABlab(50.80, 23.21, -57.02)
CIE-LCHlch(50.80, 61.56, 292.15°)
OKLaboklab(58.45% 0.0038 -0.163)
OKLCHoklch(58.45% 0.163 271.3)
XYZxyz(22.9035, 19.0966, 69.4832)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71DB #DBC45A
analogous
#5AB2DB #5A71DB #835ADB
triadic
#5A71DB #DB5A71 #71DB5A
tetradic
#5A71DB #DB5AB2 #DBC45A #5ADB83
square
#5A71DB #DB5AB2 #DBC45A #5ADB83
split-complementary
#5A71DB #DB835A #B2DB5A
monochromatic
#213799 #2C49CB #5A71DB #8C9CE6 #BEC7F1

Accessibility & contrast

On white

4.36
#5A71DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5A71DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71DB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71DB#FFFFFF#000000##000000
##5A71DB1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7FDF
Deuteranopia (green-blind)
#2574D9
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a71db;
/* rgb */ color: rgb(90, 113, 219);
/* oklch */ color: oklch(58.5% 0.163 271.3);
Tailwind
colors: {
  custom: {
    50: '#9399e7',
    500: '#5a71db',
    950: '#000000',
  },
}
SCSS
$custom: #5a71db;
$custom-light: #9399e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71db",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 229.302,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58453,
    "c": 0.16301,
    "h": 271.3
  },
  "luminance": 0.19098
}

Semantic roles & 50–950 ramp

primary
#5A71DB
secondary
#E1D8B0
accent
#AC1ACC
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71DB

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

Preview Lab → · Contrast checker → · Palette generator →

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