#5787CB#5787CB

#5787CB is a mid, moderate blue. Relative luminance 0.237; OKLCH L 61.9% C 0.116 H 257.2°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5787CB
RGBrgb(87, 135, 203)
HSLhsl(215, 53%, 57%)
HSVhsv(215, 57%, 80%)
CMYKcmyk(57.1%, 33.5%, 0%, 20.4%)
CIE-LABlab(55.75, 3.97, -40.10)
CIE-LCHlch(55.75, 40.30, 275.66°)
OKLaboklab(61.94% -0.0257 -0.1132)
OKLCHoklch(61.94% 0.116 257.2)
XYZxyz(23.3702, 23.6640, 59.8244)
Luminance0.2367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787CB #CB9B57
analogous
#57C1CB #5787CB #6157CB
triadic
#5787CB #CB5787 #87CB57
tetradic
#5787CB #CB57C1 #CB9B57 #57CB61
square
#5787CB #CB57C1 #CB9B57 #57CB61
split-complementary
#5787CB #CB6157 #C1CB57
monochromatic
#284C80 #3668AF #5787CB #86A8D9 #B4CAE8

Accessibility & contrast

On white

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

On black

5.73
#5787CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787CB
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787CB#FFFFFF#000000##000000
##5787CB1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5787cb;
/* rgb */ color: rgb(87, 135, 203);
/* oklch */ color: oklch(61.9% 0.116 257.2);
Tailwind
colors: {
  custom: {
    50: '#8fa9db',
    500: '#5787cb',
    950: '#000000',
  },
}
SCSS
$custom: #5787cb;
$custom-light: #8fa9db;
$custom-dark: #000000;
JSON
{
  "hex": "#5787cb",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 215.172,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61939,
    "c": 0.11613,
    "h": 257.2
  },
  "luminance": 0.23666
}

Semantic roles & 50–950 ramp

primary
#5787CB
secondary
#D7C3A7
accent
#A04CDC
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5787CB

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

Preview Lab → · Contrast checker → · Palette generator →

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