#5787D2#5787D2

#5787D2 is a light, vivid blue. Relative luminance 0.240; OKLCH L 62.3% C 0.125 H 259.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5787D2
RGBrgb(87, 135, 210)
HSLhsl(217, 58%, 58%)
HSVhsv(217, 59%, 82%)
CMYKcmyk(58.6%, 35.7%, 0%, 17.6%)
CIE-LABlab(56.09, 6.26, -43.51)
CIE-LCHlch(56.09, 43.96, 278.19°)
OKLaboklab(62.32% -0.0239 -0.1232)
OKLCHoklch(62.32% 0.125 259)
XYZxyz(24.2232, 24.0053, 64.3172)
Luminance0.2401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787D2 #D2A257
analogous
#57C4D2 #5787D2 #6457D2
triadic
#5787D2 #D25787 #87D257
tetradic
#5787D2 #D257C4 #D2A257 #57D264
square
#5787D2 #D257C4 #D2A257 #57D264
split-complementary
#5787D2 #D26457 #C4D257
monochromatic
#254C8A #3267BA #5787D2 #87A9DF #B8CCEC

Accessibility & contrast

On white

3.62
#5787D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#5787D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787D2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787D2#FFFFFF#000000##000000
##5787D21.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#688DD5
Deuteranopia (green-blind)
#5881D0
Tritanopia (blue-blind)
#0098A3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5787d2;
/* rgb */ color: rgb(87, 135, 210);
/* oklch */ color: oklch(62.3% 0.125 259.0);
Tailwind
colors: {
  custom: {
    50: '#90a9e0',
    500: '#5787d2',
    950: '#000000',
  },
}
SCSS
$custom: #5787d2;
$custom-light: #90a9e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5787d2",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 210
  },
  "hsl": {
    "h": 216.585,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.62319,
    "c": 0.12549,
    "h": 259
  },
  "luminance": 0.24007
}

Semantic roles & 50–950 ramp

primary
#5787D2
secondary
#DBC8AA
accent
#A547E1
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5787D2

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

Preview Lab → · Contrast checker → · Palette generator →

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