#5A71DF#5A71DF

#5A71DF is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.7% C 0.168 H 271.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5A71DF
RGBrgb(90, 113, 223)
HSLhsl(230, 68%, 61%)
HSVhsv(230, 60%, 87%)
CMYKcmyk(59.6%, 49.3%, 0%, 12.5%)
CIE-LABlab(51.05, 24.54, -58.88)
CIE-LCHlch(51.05, 63.79, 292.62°)
OKLaboklab(58.72% 0.0042 -0.1684)
OKLCHoklch(58.72% 0.168 271.4)
XYZxyz(23.4364, 19.3097, 72.2898)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71DF #DFC85A
analogous
#5AB4DF #5A71DF #865ADF
triadic
#5A71DF #DF5A71 #71DF5A
tetradic
#5A71DF #DF5AB4 #DFC85A #5ADF86
square
#5A71DF #DF5AB4 #DFC85A #5ADF86
split-complementary
#5A71DF #DF865A #B4DF5A
monochromatic
#1F35A0 #2946D3 #5A71DF #8D9DE9 #C1C9F3

Accessibility & contrast

On white

4.32
#5A71DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5A71DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71DF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71DF#FFFFFF#000000##000000
##5A71DF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3780E3
Deuteranopia (green-blind)
#1C74DD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a71df;
/* rgb */ color: rgb(90, 113, 223);
/* oklch */ color: oklch(58.7% 0.168 271.4);
Tailwind
colors: {
  custom: {
    50: '#9499ea',
    500: '#5a71df',
    950: '#000000',
  },
}
SCSS
$custom: #5a71df;
$custom-light: #9499ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71df",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 229.624,
    "s": 67.513,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5872,
    "c": 0.16849,
    "h": 271.4
  },
  "luminance": 0.19312
}

Semantic roles & 50–950 ramp

primary
#5A71DF
secondary
#E3DBB2
accent
#AF16CF
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71DF

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

Preview Lab → · Contrast checker → · Palette generator →

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