#5787EF#5787EF

#5787EF is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.0% C 0.164 H 263.7°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5787EF
RGBrgb(87, 135, 239)
HSLhsl(221, 83%, 64%)
HSVhsv(221, 64%, 94%)
CMYKcmyk(63.6%, 43.5%, 0%, 6.3%)
CIE-LABlab(57.64, 15.95, -57.26)
CIE-LCHlch(57.64, 59.44, 285.56°)
OKLaboklab(64.02% -0.0179 -0.1635)
OKLCHoklch(64.02% 0.164 263.7)
XYZxyz(28.1690, 25.5836, 85.0982)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787EF #EFBF57
analogous
#57D3EF #5787EF #7357EF
triadic
#5787EF #EF5787 #87EF57
tetradic
#5787EF #EF57D3 #EFBF57 #57EF73
square
#5787EF #EF57D3 #EFBF57 #57EF73
split-complementary
#5787EF #EF7357 #D3EF57
monochromatic
#1247BA #1F5FEA #5787EF #8FAFF4 #C7D7FA

Accessibility & contrast

On white

3.43
#5787EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#5787EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787EF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787EF#FFFFFF#000000##000000
##5787EF1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5692F3
Deuteranopia (green-blind)
#3D84ED
Tritanopia (blue-blind)
#009FAF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5787ef;
/* rgb */ color: rgb(87, 135, 239);
/* oklch */ color: oklch(64.0% 0.164 263.7);
Tailwind
colors: {
  custom: {
    50: '#94a9f5',
    500: '#5787ef',
    950: '#000000',
  },
}
SCSS
$custom: #5787ef;
$custom-light: #94a9f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5787ef",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 221.053,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64018,
    "c": 0.16445,
    "h": 263.7
  },
  "luminance": 0.25586
}

Semantic roles & 50–950 ramp

primary
#5787EF
secondary
#ECDBB6
accent
#9B06DF
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5787EF

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

Preview Lab → · Contrast checker → · Palette generator →

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