#5A71EB#5A71EB

#5A71EB is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.5% C 0.185 H 271.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5A71EB
RGBrgb(90, 113, 235)
HSLhsl(230, 78%, 64%)
HSVhsv(230, 62%, 92%)
CMYKcmyk(61.7%, 51.9%, 0%, 7.8%)
CIE-LABlab(51.81, 28.53, -64.38)
CIE-LCHlch(51.81, 70.42, 293.90°)
OKLaboklab(59.55% 0.0053 -0.1846)
OKLCHoklch(59.55% 0.185 271.6)
XYZxyz(25.1120, 19.9800, 81.1143)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71EB #EBD45A
analogous
#5AB9EB #5A71EB #8B5AEB
triadic
#5A71EB #EB5A71 #71EB5A
tetradic
#5A71EB #EB5AB9 #EBD45A #5AEB8B
square
#5A71EB #EB5AB9 #EBD45A #5AEB8B
split-complementary
#5A71EB #EB8B5A #B9EB5A
monochromatic
#162FB5 #2342E4 #5A71EB #91A0F2 #C7CFF8

Accessibility & contrast

On white

4.20
#5A71EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5A71EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71EB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71EB#FFFFFF#000000##000000
##5A71EB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2682EF
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a71eb;
/* rgb */ color: rgb(90, 113, 235);
/* oklch */ color: oklch(59.5% 0.185 271.6);
Tailwind
colors: {
  custom: {
    50: '#9699f2',
    500: '#5a71eb',
    950: '#000000',
  },
}
SCSS
$custom: #5a71eb;
$custom-light: #9699f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71eb",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 230.483,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59545,
    "c": 0.18472,
    "h": 271.6
  },
  "luminance": 0.19982
}

Semantic roles & 50–950 ramp

primary
#5A71EB
secondary
#EAE2B7
accent
#BA0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A71EB

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

Preview Lab → · Contrast checker → · Palette generator →

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