#5A87DB#5A87DB

#5A87DB is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.0% C 0.136 H 261.9°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5A87DB
RGBrgb(90, 135, 219)
HSLhsl(219, 64%, 61%)
HSVhsv(219, 59%, 86%)
CMYKcmyk(58.9%, 38.4%, 0%, 14.1%)
CIE-LABlab(56.70, 9.81, -47.60)
CIE-LCHlch(56.70, 48.61, 281.65°)
OKLaboklab(62.98% -0.0192 -0.1351)
OKLCHoklch(62.98% 0.136 261.9)
XYZxyz(25.6622, 24.6139, 70.4027)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87DB #DBAE5A
analogous
#5AC7DB #5A87DB #6D5ADB
triadic
#5A87DB #DB5A87 #87DB5A
tetradic
#5A87DB #DB5AC7 #DBAE5A #5ADB6D
square
#5A87DB #DB5AC7 #DBAE5A #5ADB6D
split-complementary
#5A87DB #DB6D5A #C7DB5A
monochromatic
#214B99 #2C64CB #5A87DB #8CACE6 #BED0F1

Accessibility & contrast

On white

3.55
#5A87DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#5A87DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87DB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87DB#FFFFFF#000000##000000
##5A87DB1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#638EDE
Deuteranopia (green-blind)
#5283D9
Tritanopia (blue-blind)
#009AA6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5a87db;
/* rgb */ color: rgb(90, 135, 219);
/* oklch */ color: oklch(63.0% 0.136 261.9);
Tailwind
colors: {
  custom: {
    50: '#93a9e6',
    500: '#5a87db',
    950: '#000000',
  },
}
SCSS
$custom: #5a87db;
$custom-light: #93a9e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87db",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 219.07,
    "s": 64.179,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62977,
    "c": 0.13646,
    "h": 261.9
  },
  "luminance": 0.24616
}

Semantic roles & 50–950 ramp

primary
#5A87DB
secondary
#E1D0B0
accent
#8E1ACC
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5A87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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