#5786E2#5786E2

#5786E2 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.0% C 0.148 H 262.5°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5786E2
RGBrgb(87, 134, 226)
HSLhsl(220, 71%, 61%)
HSVhsv(220, 62%, 89%)
CMYKcmyk(61.5%, 40.7%, 0%, 11.4%)
CIE-LABlab(56.65, 12.17, -51.61)
CIE-LCHlch(56.65, 53.02, 283.27°)
OKLaboklab(63.02% -0.0193 -0.1469)
OKLCHoklch(63.02% 0.148 262.5)
XYZxyz(26.1783, 24.5651, 75.2987)
Luminance0.2457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5786E2 #E2B357
analogous
#57CCE2 #5786E2 #6E57E2
triadic
#5786E2 #E25786 #86E257
tetradic
#5786E2 #E257CC #E2B357 #57E26E
square
#5786E2 #E257CC #E2B357 #57E26E
split-complementary
#5786E2 #E26E57 #CCE257
monochromatic
#1C4AA3 #2561D7 #5786E2 #8BACEB #BFD1F4

Accessibility & contrast

On white

3.55
#5786E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#5786E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5786E2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5786E2#FFFFFF#000000##000000
##5786E21.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8FE6
Deuteranopia (green-blind)
#4982E0
Tritanopia (blue-blind)
#009BA9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5786e2;
/* rgb */ color: rgb(87, 134, 226);
/* oklch */ color: oklch(63.0% 0.148 262.5);
Tailwind
colors: {
  custom: {
    50: '#92a8eb',
    500: '#5786e2',
    950: '#000000',
  },
}
SCSS
$custom: #5786e2;
$custom-light: #92a8eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5786e2",
  "rgb": {
    "r": 87,
    "g": 134,
    "b": 226
  },
  "hsl": {
    "h": 219.712,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.63021,
    "c": 0.14816,
    "h": 262.5
  },
  "luminance": 0.24567
}

Semantic roles & 50–950 ramp

primary
#5786E2
secondary
#E4D3B0
accent
#9213D3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5786E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5786E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva