#5787EE#5787EE

#5787EE is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.0% C 0.163 H 263.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5787EE
RGBrgb(87, 135, 238)
HSLhsl(221, 82%, 64%)
HSVhsv(221, 63%, 93%)
CMYKcmyk(63.4%, 43.3%, 0%, 6.7%)
CIE-LABlab(57.58, 15.61, -56.80)
CIE-LCHlch(57.58, 58.90, 285.37°)
OKLaboklab(63.96% -0.0181 -0.1621)
OKLCHoklch(63.96% 0.163 263.6)
XYZxyz(28.0217, 25.5246, 84.3224)
Luminance0.2553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5787EE #EEBE57
analogous
#57D3EE #5787EE #7257EE
triadic
#5787EE #EE5787 #87EE57
tetradic
#5787EE #EE57D3 #EEBE57 #57EE72
square
#5787EE #EE57D3 #EEBE57 #57EE72
split-complementary
#5787EE #EE7257 #D3EE57
monochromatic
#1347B8 #1F5FE8 #5787EE #8FAFF4 #C6D6F9

Accessibility & contrast

On white

3.44
#5787EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#5787EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5787EE
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5787EE#FFFFFF#000000##000000
##5787EE1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F2
Deuteranopia (green-blind)
#3E84EC
Tritanopia (blue-blind)
#009EAF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5787ee;
/* rgb */ color: rgb(87, 135, 238);
/* oklch */ color: oklch(64.0% 0.163 263.6);
Tailwind
colors: {
  custom: {
    50: '#94a9f4',
    500: '#5787ee',
    950: '#000000',
  },
}
SCSS
$custom: #5787ee;
$custom-light: #94a9f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5787ee",
  "rgb": {
    "r": 87,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 220.927,
    "s": 81.622,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63956,
    "c": 0.16312,
    "h": 263.6
  },
  "luminance": 0.25527
}

Semantic roles & 50–950 ramp

primary
#5787EE
secondary
#EBDAB6
accent
#9A08DE
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5787EE

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

Preview Lab → · Contrast checker → · Palette generator →

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