#5A87BB#5A87BB

#5A87BB is a mid, moderate cyan. Relative luminance 0.231; OKLCH L 61.3% C 0.094 H 252.8°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5A87BB
RGBrgb(90, 135, 187)
HSLhsl(212, 42%, 54%)
HSVhsv(212, 52%, 73%)
CMYKcmyk(51.9%, 27.8%, 0%, 26.7%)
CIE-LABlab(55.16, -0.45, -31.92)
CIE-LCHlch(55.16, 31.93, 269.19°)
OKLaboklab(61.28% -0.0276 -0.0895)
OKLCHoklch(61.28% 0.094 252.8)
XYZxyz(21.8470, 23.0878, 50.3092)
Luminance0.2309 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A87BB #BB8E5A
analogous
#5AB8BB #5A87BB #5E5ABB
triadic
#5A87BB #BB5A87 #87BB5A
tetradic
#5A87BB #BB5AB8 #BB8E5A #5ABB5E
square
#5A87BB #BB5AB8 #BB8E5A #5ABB5E
split-complementary
#5A87BB #BB5E5A #B8BB5A
monochromatic
#2D4B6D #3F6999 #5A87BB #85A7CD #B1C6DF

Accessibility & contrast

On white

3.74
#5A87BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#5A87BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A87BB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A87BB#FFFFFF#000000##000000
##5A87BB1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7289BD
Deuteranopia (green-blind)
#6680BA
Tritanopia (blue-blind)
#289399
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a87bb;
/* rgb */ color: rgb(90, 135, 187);
/* oklch */ color: oklch(61.3% 0.094 252.8);
Tailwind
colors: {
  custom: {
    50: '#8fa9cf',
    500: '#5a87bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a87bb;
$custom-light: #8fa9cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a87bb",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 187
  },
  "hsl": {
    "h": 212.165,
    "s": 41.631,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61278,
    "c": 0.09366,
    "h": 252.8
  },
  "luminance": 0.23089
}

Semantic roles & 50–950 ramp

primary
#5A87BB
secondary
#CDBAA4
accent
#9856D1
background
#F9FAFC
surface
#F1F4F9
border
#CBCED2
text
#0D0F14
muted
#7E7F82

Preview Lab

Preview with #5A87BB

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

Preview Lab → · Contrast checker → · Palette generator →

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