#5787CD#5787CD

#5787CD is a light, moderate blue. Relative luminance 0.238; OKLCH L 62.0% C 0.119 H 257.8°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5787CD
RGBrgb(87, 135, 205)
HSLhsl(216, 54%, 57%)
HSVhsv(216, 58%, 80%)
CMYKcmyk(57.6%, 34.1%, 0%, 19.6%)
CIE-LABlab(55.85, 4.62, -41.08)
CIE-LCHlch(55.85, 41.34, 276.42°)
OKLaboklab(62.05% -0.0252 -0.1161)
OKLCHoklch(62.05% 0.119 257.8)
XYZxyz(23.6100, 23.7600, 61.0877)
Luminance0.2376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787CD #CD9D57
analogous
#57C2CD #5787CD #6257CD
triadic
#5787CD #CD5787 #87CD57
tetradic
#5787CD #CD57C2 #CD9D57 #57CD62
square
#5787CD #CD57C2 #CD9D57 #57CD62
split-complementary
#5787CD #CD6257 #C2CD57
monochromatic
#274C83 #3568B2 #5787CD #86A9DB #B5CAE9

Accessibility & contrast

On white

3.65
#5787CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#5787CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787CD
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787CD#FFFFFF#000000##000000
##5787CD1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8CD0
Deuteranopia (green-blind)
#5B81CC
Tritanopia (blue-blind)
#0097A0
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5787cd;
/* rgb */ color: rgb(87, 135, 205);
/* oklch */ color: oklch(62.0% 0.119 257.8);
Tailwind
colors: {
  custom: {
    50: '#8fa9dc',
    500: '#5787cd',
    950: '#000000',
  },
}
SCSS
$custom: #5787cd;
$custom-light: #8fa9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5787cd",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 215.593,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.62046,
    "c": 0.1188,
    "h": 257.8
  },
  "luminance": 0.23762
}

Semantic roles & 50–950 ramp

primary
#5787CD
secondary
#D8C4A8
accent
#A24ADD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5787CD

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

Preview Lab → · Contrast checker → · Palette generator →

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