#5787CC#5787CC

#5787CC is a mid, moderate blue. Relative luminance 0.237; OKLCH L 62.0% C 0.117 H 257.5°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5787CC
RGBrgb(87, 135, 204)
HSLhsl(215, 53%, 57%)
HSVhsv(215, 57%, 80%)
CMYKcmyk(57.4%, 33.8%, 0%, 20%)
CIE-LABlab(55.80, 4.30, -40.59)
CIE-LCHlch(55.80, 40.82, 276.05°)
OKLaboklab(61.99% -0.0254 -0.1147)
OKLCHoklch(61.99% 0.117 257.5)
XYZxyz(23.4897, 23.7118, 60.4540)
Luminance0.2371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787CC #CC9C57
analogous
#57C1CC #5787CC #6257CC
triadic
#5787CC #CC5787 #87CC57
tetradic
#5787CC #CC57C1 #CC9C57 #57CC62
square
#5787CC #CC57C1 #CC9C57 #57CC62
split-complementary
#5787CC #CC6257 #C1CC57
monochromatic
#274C81 #3668B0 #5787CC #86A9DA #B5CAE9

Accessibility & contrast

On white

3.66
#5787CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#5787CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787CC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787CC#FFFFFF#000000##000000
##5787CC1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8CCF
Deuteranopia (green-blind)
#5C81CB
Tritanopia (blue-blind)
#0096A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5787cc;
/* rgb */ color: rgb(87, 135, 204);
/* oklch */ color: oklch(62.0% 0.117 257.5);
Tailwind
colors: {
  custom: {
    50: '#8fa9dc',
    500: '#5787cc',
    950: '#000000',
  },
}
SCSS
$custom: #5787cc;
$custom-light: #8fa9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5787cc",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 215.385,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61992,
    "c": 0.11747,
    "h": 257.5
  },
  "luminance": 0.23714
}

Semantic roles & 50–950 ramp

primary
#5787CC
secondary
#D7C4A8
accent
#A14BDD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5787CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5787CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva