#5A87EE#5A87EE

#5A87EE is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.1% C 0.162 H 264.5°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5A87EE
RGBrgb(90, 135, 238)
HSLhsl(222, 81%, 64%)
HSVhsv(222, 62%, 93%)
CMYKcmyk(62.2%, 43.3%, 0%, 6.7%)
CIE-LABlab(57.72, 16.13, -56.56)
CIE-LCHlch(57.72, 58.82, 285.92°)
OKLaboklab(64.1% -0.0155 -0.1614)
OKLCHoklch(64.1% 0.162 264.5)
XYZxyz(28.3077, 25.6721, 84.3358)
Luminance0.2567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87EE #EEC15A
analogous
#5AD1EE #5A87EE #775AEE
triadic
#5A87EE #EE5A87 #87EE5A
tetradic
#5A87EE #EE5AD1 #EEC15A #5AEE77
square
#5A87EE #EE5AD1 #EEC15A #5AEE77
split-complementary
#5A87EE #EE775A #D1EE5A
monochromatic
#1346BA #235FE8 #5A87EE #91AFF4 #C9D8F9

Accessibility & contrast

On white

3.42
#5A87EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#5A87EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87EE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87EE#FFFFFF#000000##000000
##5A87EE1.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F2
Deuteranopia (green-blind)
#4084EC
Tritanopia (blue-blind)
#009EAF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5a87ee;
/* rgb */ color: rgb(90, 135, 238);
/* oklch */ color: oklch(64.1% 0.162 264.5);
Tailwind
colors: {
  custom: {
    50: '#95a9f4',
    500: '#5a87ee',
    950: '#000000',
  },
}
SCSS
$custom: #5a87ee;
$custom-light: #95a9f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87ee",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 221.757,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64103,
    "c": 0.16211,
    "h": 264.5
  },
  "luminance": 0.25675
}

Semantic roles & 50–950 ramp

primary
#5A87EE
secondary
#ECDCB8
accent
#9D08DE
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5A87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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