#5B87CC#5B87CC

#5B87CC is a light, moderate blue. Relative luminance 0.239; OKLCH L 62.2% C 0.116 H 259.1°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5B87CC
RGBrgb(91, 135, 204)
HSLhsl(217, 53%, 58%)
HSVhsv(217, 55%, 80%)
CMYKcmyk(55.4%, 33.8%, 0%, 20%)
CIE-LABlab(56.00, 5.14, -40.26)
CIE-LCHlch(56.00, 40.59, 277.28°)
OKLaboklab(62.2% -0.0219 -0.1137)
OKLCHoklch(62.2% 0.116 259.1)
XYZxyz(23.8737, 23.9098, 60.4720)
Luminance0.2391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87CC #CCA05B
analogous
#5BBFCC #5B87CC #675BCC
triadic
#5B87CC #CC5B87 #87CC5B
tetradic
#5B87CC #CC5BBF #CCA05B #5BCC67
square
#5B87CC #CC5BBF #CCA05B #5BCC67
split-complementary
#5B87CC #CC675B #BFCC5B
monochromatic
#294C84 #3767B2 #5B87CC #8AA9DB #B8CBE9

Accessibility & contrast

On white

3.63
#5B87CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#5B87CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87CC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87CC#FFFFFF#000000##000000
##5B87CC1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8CCF
Deuteranopia (green-blind)
#5D81CB
Tritanopia (blue-blind)
#0F96A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5b87cc;
/* rgb */ color: rgb(91, 135, 204);
/* oklch */ color: oklch(62.2% 0.116 259.1);
Tailwind
colors: {
  custom: {
    50: '#91a9dc',
    500: '#5b87cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b87cc;
$custom-light: #91a9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87cc",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 216.637,
    "s": 52.558,
    "l": 57.843
  },
  "oklch": {
    "l": 0.62201,
    "c": 0.11575,
    "h": 259.1
  },
  "luminance": 0.23912
}

Semantic roles & 50–950 ramp

primary
#5B87CC
secondary
#D8C6AB
accent
#A44CDC
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5B87CC

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

Preview Lab → · Contrast checker → · Palette generator →

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