#5A70E4#5A70E4

#5A70E4 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.9% C 0.177 H 271.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5A70E4
RGBrgb(90, 112, 228)
HSLhsl(230, 72%, 62%)
HSVhsv(230, 61%, 89%)
CMYKcmyk(60.5%, 50.9%, 0%, 10.6%)
CIE-LABlab(51.11, 26.82, -61.60)
CIE-LCHlch(51.11, 67.18, 293.53°)
OKLaboklab(58.87% 0.0057 -0.1764)
OKLCHoklch(58.87% 0.177 271.8)
XYZxyz(24.0096, 19.3615, 75.8556)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A70E4 #E4CE5A
analogous
#5AB5E4 #5A70E4 #895AE4
triadic
#5A70E4 #E45A70 #70E45A
tetradic
#5A70E4 #E45AB5 #E4CE5A #5AE489
square
#5A70E4 #E45AB5 #E4CE5A #5AE489
split-complementary
#5A70E4 #E4895A #B5E45A
monochromatic
#1C32A8 #2542DB #5A70E4 #8F9EED #C3CBF5

Accessibility & contrast

On white

4.31
#5A70E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5A70E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A70E4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A70E4#FFFFFF#000000##000000
##5A70E41.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E80E8
Deuteranopia (green-blind)
#0074E2
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a70e4;
/* rgb */ color: rgb(90, 112, 228);
/* oklch */ color: oklch(58.9% 0.177 271.8);
Tailwind
colors: {
  custom: {
    50: '#9598ed',
    500: '#5a70e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a70e4;
$custom-light: #9598ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a70e4",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 228
  },
  "hsl": {
    "h": 230.435,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58866,
    "c": 0.17654,
    "h": 271.8
  },
  "luminance": 0.19363
}

Semantic roles & 50–950 ramp

primary
#5A70E4
secondary
#E6DEB4
accent
#B512D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A70E4

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

Preview Lab → · Contrast checker → · Palette generator →

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