#5A71CB#5A71CB

#5A71CB is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.4% C 0.141 H 270.7°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5A71CB
RGBrgb(90, 113, 203)
HSLhsl(228, 52%, 57%)
HSVhsv(228, 56%, 80%)
CMYKcmyk(55.7%, 44.3%, 0%, 20.4%)
CIE-LABlab(49.85, 17.94, -49.44)
CIE-LCHlch(49.85, 52.59, 289.94°)
OKLaboklab(57.42% 0.0016 -0.1407)
OKLCHoklch(57.42% 0.141 270.7)
XYZxyz(20.8975, 18.2942, 58.9182)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71CB #CBB45A
analogous
#5AA9CB #5A71CB #7C5ACB
triadic
#5A71CB #CB5A71 #71CB5A
tetradic
#5A71CB #CB5AA9 #CBB45A #5ACB7C
square
#5A71CB #CB5AA9 #CBB45A #5ACB7C
split-complementary
#5A71CB #CB7C5A #A9CB5A
monochromatic
#293B82 #3850B0 #5A71CB #8999DA #B7C1E8

Accessibility & contrast

On white

4.51
#5A71CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#5A71CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71CB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71CB#FFFFFF#000000##000000
##5A71CB1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#497CCE
Deuteranopia (green-blind)
#3B72C9
Tritanopia (blue-blind)
#188594
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a71cb;
/* rgb */ color: rgb(90, 113, 203);
/* oklch */ color: oklch(57.4% 0.141 270.7);
Tailwind
colors: {
  custom: {
    50: '#9199db',
    500: '#5a71cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a71cb;
$custom-light: #9199db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71cb",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 227.788,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57424,
    "c": 0.14072,
    "h": 270.7
  },
  "luminance": 0.18296
}

Semantic roles & 50–950 ramp

primary
#5A71CB
secondary
#D7CEAA
accent
#BE4CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5A71CB

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

Preview Lab → · Contrast checker → · Palette generator →

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