#5787E8#5787E8

#5787E8 is a light, vivid blue. Relative luminance 0.252; OKLCH L 63.6% C 0.155 H 262.9°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5787E8
RGBrgb(87, 135, 232)
HSLhsl(220, 76%, 63%)
HSVhsv(220, 63%, 91%)
CMYKcmyk(62.5%, 41.8%, 0%, 9%)
CIE-LABlab(57.25, 13.59, -54.00)
CIE-LCHlch(57.25, 55.68, 284.12°)
OKLaboklab(63.59% -0.0192 -0.1539)
OKLCHoklch(63.59% 0.155 262.9)
XYZxyz(27.1549, 25.1779, 79.7571)
Luminance0.2518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787E8 #E8B857
analogous
#57CFE8 #5787E8 #7057E8
triadic
#5787E8 #E85787 #87E857
tetradic
#5787E8 #E857CF #E8B857 #57E870
square
#5787E8 #E857CF #E8B857 #57E870
split-complementary
#5787E8 #E87057 #CFE857
monochromatic
#1849AD #2161E1 #5787E8 #8DADEF #C3D4F7

Accessibility & contrast

On white

3.48
#5787E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#5787E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787E8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787E8#FFFFFF#000000##000000
##5787E81.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B91EC
Deuteranopia (green-blind)
#4583E6
Tritanopia (blue-blind)
#009DAC
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5787e8;
/* rgb */ color: rgb(87, 135, 232);
/* oklch */ color: oklch(63.6% 0.155 262.9);
Tailwind
colors: {
  custom: {
    50: '#93a9f0',
    500: '#5787e8',
    950: '#000000',
  },
}
SCSS
$custom: #5787e8;
$custom-light: #93a9f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5787e8",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 232
  },
  "hsl": {
    "h": 220.138,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6359,
    "c": 0.15508,
    "h": 262.9
  },
  "luminance": 0.2518
}

Semantic roles & 50–950 ramp

primary
#5787E8
secondary
#E8D6B3
accent
#950DD8
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5787E8

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

Preview Lab → · Contrast checker → · Palette generator →

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