#5786CD#5786CD

#5786CD is a mid, moderate blue. Relative luminance 0.235; OKLCH L 61.8% C 0.120 H 258.4°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5786CD
RGBrgb(87, 134, 205)
HSLhsl(216, 54%, 57%)
HSVhsv(216, 58%, 80%)
CMYKcmyk(57.6%, 34.6%, 0%, 19.6%)
CIE-LABlab(55.57, 5.22, -41.52)
CIE-LCHlch(55.57, 41.85, 277.16°)
OKLaboklab(61.83% -0.0241 -0.1174)
OKLCHoklch(61.83% 0.12 258.4)
XYZxyz(23.4712, 23.4822, 61.0414)
Luminance0.2348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5786CD #CD9E57
analogous
#57C1CD #5786CD #6357CD
triadic
#5786CD #CD5786 #86CD57
tetradic
#5786CD #CD57C1 #CD9E57 #57CD63
square
#5786CD #CD57C1 #CD9E57 #57CD63
split-complementary
#5786CD #CD6357 #C1CD57
monochromatic
#274B83 #3567B2 #5786CD #86A8DB #B5CAE9

Accessibility & contrast

On white

3.69
#5786CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#5786CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5786CD
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5786CD#FFFFFF#000000##000000
##5786CD1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#698BD0
Deuteranopia (green-blind)
#5980CC
Tritanopia (blue-blind)
#0096A0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5786cd;
/* rgb */ color: rgb(87, 134, 205);
/* oklch */ color: oklch(61.8% 0.120 258.4);
Tailwind
colors: {
  custom: {
    50: '#8fa8dc',
    500: '#5786cd',
    950: '#000000',
  },
}
SCSS
$custom: #5786cd;
$custom-light: #8fa8dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5786cd",
  "rgb": {
    "r": 87,
    "g": 134,
    "b": 205
  },
  "hsl": {
    "h": 216.102,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61827,
    "c": 0.11984,
    "h": 258.4
  },
  "luminance": 0.23484
}

Semantic roles & 50–950 ramp

primary
#5786CD
secondary
#D8C5A8
accent
#A34ADD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5786CD

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

Preview Lab → · Contrast checker → · Palette generator →

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