#5A87CB#5A87CB

#5A87CB is a light, moderate blue. Relative luminance 0.238; OKLCH L 62.1% C 0.115 H 258.4°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5A87CB
RGBrgb(90, 135, 203)
HSLhsl(216, 52%, 57%)
HSVhsv(216, 56%, 80%)
CMYKcmyk(55.7%, 33.5%, 0%, 20.4%)
CIE-LABlab(55.90, 4.61, -39.86)
CIE-LCHlch(55.90, 40.12, 276.59°)
OKLaboklab(62.1% -0.0231 -0.1125)
OKLCHoklch(62.1% 0.115 258.4)
XYZxyz(23.6562, 23.8115, 59.8378)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87CB #CB9E5A
analogous
#5AC0CB #5A87CB #655ACB
triadic
#5A87CB #CB5A87 #87CB5A
tetradic
#5A87CB #CB5AC0 #CB9E5A #5ACB65
square
#5A87CB #CB5AC0 #CB9E5A #5ACB65
split-complementary
#5A87CB #CB655A #C0CB5A
monochromatic
#294C82 #3868B0 #5A87CB #89A9DA #B7CBE8

Accessibility & contrast

On white

3.64
#5A87CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#5A87CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87CB
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87CB#FFFFFF#000000##000000
##5A87CB1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8CCE
Deuteranopia (green-blind)
#5D81CA
Tritanopia (blue-blind)
#0A96A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a87cb;
/* rgb */ color: rgb(90, 135, 203);
/* oklch */ color: oklch(62.1% 0.115 258.4);
Tailwind
colors: {
  custom: {
    50: '#90a9db',
    500: '#5a87cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a87cb;
$custom-light: #90a9db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87cb",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 216.106,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.62095,
    "c": 0.11483,
    "h": 258.4
  },
  "luminance": 0.23813
}

Semantic roles & 50–950 ramp

primary
#5A87CB
secondary
#D7C5AA
accent
#A24CDC
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5A87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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