#5787DC#5787DC

#5787DC is a light, vivid blue. Relative luminance 0.245; OKLCH L 62.9% C 0.139 H 261.1°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5787DC
RGBrgb(87, 135, 220)
HSLhsl(218, 66%, 60%)
HSVhsv(218, 60%, 86%)
CMYKcmyk(60.5%, 38.6%, 0%, 13.7%)
CIE-LABlab(56.60, 9.57, -48.32)
CIE-LCHlch(56.60, 49.26, 281.20°)
OKLaboklab(62.88% -0.0216 -0.1372)
OKLCHoklch(62.88% 0.139 261.1)
XYZxyz(25.5082, 24.5192, 71.0847)
Luminance0.2452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787DC #DCAC57
analogous
#57C9DC #5787DC #6A57DC
triadic
#5787DC #DC5787 #87DC57
tetradic
#5787DC #DC57C9 #DCAC57 #57DC6A
square
#5787DC #DC57C9 #DCAC57 #57DC6A
split-complementary
#5787DC #DC6A57 #C9DC57
monochromatic
#204B99 #2A64CB #5787DC #8AABE7 #BCCFF1

Accessibility & contrast

On white

3.56
#5787DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#5787DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787DC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787DC#FFFFFF#000000##000000
##5787DC1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#628EDF
Deuteranopia (green-blind)
#5082DA
Tritanopia (blue-blind)
#009AA7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5787dc;
/* rgb */ color: rgb(87, 135, 220);
/* oklch */ color: oklch(62.9% 0.139 261.1);
Tailwind
colors: {
  custom: {
    50: '#91a9e7',
    500: '#5787dc',
    950: '#000000',
  },
}
SCSS
$custom: #5787dc;
$custom-light: #91a9e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5787dc",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 218.346,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.62882,
    "c": 0.13894,
    "h": 261.1
  },
  "luminance": 0.24521
}

Semantic roles & 50–950 ramp

primary
#5787DC
secondary
#E1CEAE
accent
#8C18CD
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5787DC

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

Preview Lab → · Contrast checker → · Palette generator →

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