#5787D8#5787D8

#5787D8 is a light, vivid blue. Relative luminance 0.243; OKLCH L 62.7% C 0.134 H 260.3°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5787D8
RGBrgb(87, 135, 216)
HSLhsl(218, 62%, 59%)
HSVhsv(218, 60%, 85%)
CMYKcmyk(59.7%, 37.5%, 0%, 15.3%)
CIE-LABlab(56.40, 8.24, -46.41)
CIE-LCHlch(56.40, 47.13, 280.07°)
OKLaboklab(62.65% -0.0225 -0.1316)
OKLCHoklch(62.65% 0.134 260.3)
XYZxyz(24.9848, 24.3099, 68.3281)
Luminance0.2431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787D8 #D8A857
analogous
#57C8D8 #5787D8 #6757D8
triadic
#5787D8 #D85787 #87D857
tetradic
#5787D8 #D857C8 #D8A857 #57D867
square
#5787D8 #D857C8 #D8A857 #57D867
split-complementary
#5787D8 #D86757 #C8D857
monochromatic
#224C93 #2E66C4 #5787D8 #89AAE4 #BACEEF

Accessibility & contrast

On white

3.58
#5787D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#5787D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787D8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787D8#FFFFFF#000000##000000
##5787D81.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#658EDB
Deuteranopia (green-blind)
#5382D6
Tritanopia (blue-blind)
#0099A5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5787d8;
/* rgb */ color: rgb(87, 135, 216);
/* oklch */ color: oklch(62.7% 0.134 260.3);
Tailwind
colors: {
  custom: {
    50: '#91a9e4',
    500: '#5787d8',
    950: '#000000',
  },
}
SCSS
$custom: #5787d8;
$custom-light: #91a9e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5787d8",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 216
  },
  "hsl": {
    "h": 217.674,
    "s": 62.319,
    "l": 59.412
  },
  "oklch": {
    "l": 0.62654,
    "c": 0.13356,
    "h": 260.3
  },
  "luminance": 0.24312
}

Semantic roles & 50–950 ramp

primary
#5787D8
secondary
#DFCCAC
accent
#A942E5
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F15
muted
#7E7F84

Preview Lab

Preview with #5787D8

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

Preview Lab → · Contrast checker → · Palette generator →

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