#5787CE#5787CE

#5787CE is a light, vivid blue. Relative luminance 0.238; OKLCH L 62.1% C 0.120 H 258.0°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5787CE
RGBrgb(87, 135, 206)
HSLhsl(216, 55%, 57%)
HSVhsv(216, 58%, 81%)
CMYKcmyk(57.8%, 34.5%, 0%, 19.2%)
CIE-LABlab(55.90, 4.95, -41.57)
CIE-LCHlch(55.90, 41.86, 276.79°)
OKLaboklab(62.1% -0.0249 -0.1175)
OKLCHoklch(62.1% 0.12 258)
XYZxyz(23.7311, 23.8084, 61.7255)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787CE #CE9E57
analogous
#57C3CE #5787CE #6257CE
triadic
#5787CE #CE5787 #87CE57
tetradic
#5787CE #CE57C3 #CE9E57 #57CE62
square
#5787CE #CE57C3 #CE9E57 #57CE62
split-complementary
#5787CE #CE6257 #C3CE57
monochromatic
#274C84 #3468B3 #5787CE #86A9DC #B6CBEA

Accessibility & contrast

On white

3.64
#5787CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#5787CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787CE
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787CE#FFFFFF#000000##000000
##5787CE1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8CD1
Deuteranopia (green-blind)
#5A81CD
Tritanopia (blue-blind)
#0097A1
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5787ce;
/* rgb */ color: rgb(87, 135, 206);
/* oklch */ color: oklch(62.1% 0.120 258.0);
Tailwind
colors: {
  custom: {
    50: '#8fa9dd',
    500: '#5787ce',
    950: '#000000',
  },
}
SCSS
$custom: #5787ce;
$custom-light: #8fa9dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5787ce",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 206
  },
  "hsl": {
    "h": 215.798,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.621,
    "c": 0.12014,
    "h": 258
  },
  "luminance": 0.2381
}

Semantic roles & 50–950 ramp

primary
#5787CE
secondary
#D8C5A8
accent
#A24ADE
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5787CE

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

Preview Lab → · Contrast checker → · Palette generator →

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