#5A71E8#5A71E8

#5A71E8 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.181 H 271.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A71E8
RGBrgb(90, 113, 232)
HSLhsl(230, 76%, 63%)
HSVhsv(230, 61%, 91%)
CMYKcmyk(61.2%, 51.3%, 0%, 9%)
CIE-LABlab(51.62, 27.53, -63.02)
CIE-LCHlch(51.62, 68.77, 293.60°)
OKLaboklab(59.34% 0.0051 -0.1806)
OKLCHoklch(59.34% 0.181 271.6)
XYZxyz(24.6822, 19.8080, 78.8509)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71E8 #E8D15A
analogous
#5AB8E8 #5A71E8 #8A5AE8
triadic
#5A71E8 #E85A71 #71E85A
tetradic
#5A71E8 #E85AB8 #E8D15A #5AE88A
square
#5A71E8 #E85AB8 #E8D15A #5AE88A
split-complementary
#5A71E8 #E88A5A #B8E85A
monochromatic
#1831AF #2443E1 #5A71E8 #909FEF #C5CDF7

Accessibility & contrast

On white

4.23
#5A71E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5A71E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71E8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71E8#FFFFFF#000000##000000
##5A71E81.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B82EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a71e8;
/* rgb */ color: rgb(90, 113, 232);
/* oklch */ color: oklch(59.3% 0.181 271.6);
Tailwind
colors: {
  custom: {
    50: '#9599f0',
    500: '#5a71e8',
    950: '#000000',
  },
}
SCSS
$custom: #5a71e8;
$custom-light: #9599f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71e8",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 230.282,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59335,
    "c": 0.18069,
    "h": 271.6
  },
  "luminance": 0.1981
}

Semantic roles & 50–950 ramp

primary
#5A71E8
secondary
#E8E0B5
accent
#B70ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5A71E8

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

Preview Lab → · Contrast checker → · Palette generator →

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