#5786CF#5786CF

#5786CF is a mid, vivid blue. Relative luminance 0.236; OKLCH L 61.9% C 0.123 H 258.9°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5786CF
RGBrgb(87, 134, 207)
HSLhsl(217, 56%, 58%)
HSVhsv(217, 58%, 81%)
CMYKcmyk(58%, 35.3%, 0%, 18.8%)
CIE-LABlab(55.66, 5.87, -42.50)
CIE-LCHlch(55.66, 42.90, 277.87°)
OKLaboklab(61.94% -0.0236 -0.1202)
OKLCHoklch(61.94% 0.123 258.9)
XYZxyz(23.7141, 23.5794, 62.3210)
Luminance0.2358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5786CF #CFA057
analogous
#57C2CF #5786CF #6457CF
triadic
#5786CF #CF5786 #86CF57
tetradic
#5786CF #CF57C2 #CFA057 #57CF64
square
#5786CF #CF57C2 #CFA057 #57CF64
split-complementary
#5786CF #CF6457 #C2CF57
monochromatic
#264B85 #3466B5 #5786CF #87A8DD #B6CBEA

Accessibility & contrast

On white

3.67
#5786CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#5786CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5786CF
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5786CF#FFFFFF#000000##000000
##5786CF1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#688CD2
Deuteranopia (green-blind)
#5880CD
Tritanopia (blue-blind)
#0096A1
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5786cf;
/* rgb */ color: rgb(87, 134, 207);
/* oklch */ color: oklch(61.9% 0.123 258.9);
Tailwind
colors: {
  custom: {
    50: '#8fa8de',
    500: '#5786cf',
    950: '#000000',
  },
}
SCSS
$custom: #5786cf;
$custom-light: #8fa8de;
$custom-dark: #000000;
JSON
{
  "hex": "#5786cf",
  "rgb": {
    "r": 87,
    "g": 134,
    "b": 207
  },
  "hsl": {
    "h": 216.5,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61936,
    "c": 0.12253,
    "h": 258.9
  },
  "luminance": 0.23581
}

Semantic roles & 50–950 ramp

primary
#5786CF
secondary
#D9C6A9
accent
#A449DF
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5786CF

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

Preview Lab → · Contrast checker → · Palette generator →

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