#5786CB#5786CB

#5786CB is a mid, moderate blue. Relative luminance 0.234; OKLCH L 61.7% C 0.117 H 257.9°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5786CB
RGBrgb(87, 134, 203)
HSLhsl(216, 53%, 57%)
HSVhsv(216, 57%, 80%)
CMYKcmyk(57.1%, 34%, 0%, 20.4%)
CIE-LABlab(55.47, 4.57, -40.55)
CIE-LCHlch(55.47, 40.80, 276.43°)
OKLaboklab(61.72% -0.0246 -0.1145)
OKLCHoklch(61.72% 0.117 257.9)
XYZxyz(23.2313, 23.3863, 59.7781)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5786CB #CB9C57
analogous
#57C0CB #5786CB #6257CB
triadic
#5786CB #CB5786 #86CB57
tetradic
#5786CB #CB57C0 #CB9C57 #57CB62
square
#5786CB #CB57C0 #CB9C57 #57CB62
split-complementary
#5786CB #CB6257 #C0CB57
monochromatic
#284B80 #3667AF #5786CB #86A8D9 #B4C9E8

Accessibility & contrast

On white

3.70
#5786CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#5786CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5786CB
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5786CB#FFFFFF#000000##000000
##5786CB1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8BCE
Deuteranopia (green-blind)
#5B80CA
Tritanopia (blue-blind)
#00959F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5786cb;
/* rgb */ color: rgb(87, 134, 203);
/* oklch */ color: oklch(61.7% 0.117 257.9);
Tailwind
colors: {
  custom: {
    50: '#8fa8db',
    500: '#5786cb',
    950: '#000000',
  },
}
SCSS
$custom: #5786cb;
$custom-light: #8fa8db;
$custom-dark: #000000;
JSON
{
  "hex": "#5786cb",
  "rgb": {
    "r": 87,
    "g": 134,
    "b": 203
  },
  "hsl": {
    "h": 215.69,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61719,
    "c": 0.11716,
    "h": 257.9
  },
  "luminance": 0.23388
}

Semantic roles & 50–950 ramp

primary
#5786CB
secondary
#D7C3A7
accent
#A24CDC
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5786CB

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

Preview Lab → · Contrast checker → · Palette generator →

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