#5A71E3#5A71E3

#5A71E3 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.174 H 271.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5A71E3
RGBrgb(90, 113, 227)
HSLhsl(230, 71%, 62%)
HSVhsv(230, 60%, 89%)
CMYKcmyk(60.4%, 50.2%, 0%, 11%)
CIE-LABlab(51.30, 25.87, -60.72)
CIE-LCHlch(51.30, 66.00, 293.07°)
OKLaboklab(58.99% 0.0046 -0.1739)
OKLCHoklch(58.99% 0.174 271.5)
XYZxyz(23.9821, 19.5280, 75.1636)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71E3 #E3CC5A
analogous
#5AB6E3 #5A71E3 #885AE3
triadic
#5A71E3 #E35A71 #71E35A
tetradic
#5A71E3 #E35AB6 #E3CC5A #5AE388
square
#5A71E3 #E35AB6 #E3CC5A #5AE388
split-complementary
#5A71E3 #E3885A #B6E35A
monochromatic
#1C33A6 #2644DA #5A71E3 #8E9EEC #C3CBF5

Accessibility & contrast

On white

4.28
#5A71E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5A71E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71E3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71E3#FFFFFF#000000##000000
##5A71E31.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3281E7
Deuteranopia (green-blind)
#0E74E1
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a71e3;
/* rgb */ color: rgb(90, 113, 227);
/* oklch */ color: oklch(59.0% 0.174 271.5);
Tailwind
colors: {
  custom: {
    50: '#9499ec',
    500: '#5a71e3',
    950: '#000000',
  },
}
SCSS
$custom: #5a71e3;
$custom-light: #9499ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71e3",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 227
  },
  "hsl": {
    "h": 229.927,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58991,
    "c": 0.17394,
    "h": 271.5
  },
  "luminance": 0.1953
}

Semantic roles & 50–950 ramp

primary
#5A71E3
secondary
#E6DDB3
accent
#B312D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71E3

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

Preview Lab → · Contrast checker → · Palette generator →

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