#5A71DD#5A71DD

#5A71DD is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.6% C 0.166 H 271.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5A71DD
RGBrgb(90, 113, 221)
HSLhsl(229, 66%, 61%)
HSVhsv(229, 59%, 87%)
CMYKcmyk(59.3%, 48.9%, 0%, 13.3%)
CIE-LABlab(50.92, 23.87, -57.95)
CIE-LCHlch(50.92, 62.67, 292.39°)
OKLaboklab(58.59% 0.004 -0.1657)
OKLCHoklch(58.59% 0.166 271.4)
XYZxyz(23.1684, 19.2025, 70.8781)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71DD #DDC65A
analogous
#5AB2DD #5A71DD #845ADD
triadic
#5A71DD #DD5A71 #71DD5A
tetradic
#5A71DD #DD5AB2 #DDC65A #5ADD84
square
#5A71DD #DD5AB2 #DDC65A #5ADD84
split-complementary
#5A71DD #DD845A #B2DD5A
monochromatic
#20369C #2B48CF #5A71DD #8D9DE7 #BFC8F2

Accessibility & contrast

On white

4.34
#5A71DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#5A71DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71DD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71DD#FFFFFF#000000##000000
##5A71DD1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#397FE1
Deuteranopia (green-blind)
#2174DB
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a71dd;
/* rgb */ color: rgb(90, 113, 221);
/* oklch */ color: oklch(58.6% 0.166 271.4);
Tailwind
colors: {
  custom: {
    50: '#9399e8',
    500: '#5a71dd',
    950: '#000000',
  },
}
SCSS
$custom: #5a71dd;
$custom-light: #9399e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71dd",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 229.466,
    "s": 65.829,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58586,
    "c": 0.16576,
    "h": 271.4
  },
  "luminance": 0.19204
}

Semantic roles & 50–950 ramp

primary
#5A71DD
secondary
#E2D9B1
accent
#AE18CE
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71DD

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

Preview Lab → · Contrast checker → · Palette generator →

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