#5791CF#5791CF

#5791CF is a light, moderate cyan. Relative luminance 0.268; OKLCH L 64.4% C 0.112 H 251.4°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5791CF
RGBrgb(87, 145, 207)
HSLhsl(211, 56%, 58%)
HSVhsv(211, 58%, 81%)
CMYKcmyk(58%, 30%, 0%, 18.8%)
CIE-LABlab(58.77, -0.59, -37.61)
CIE-LCHlch(58.77, 37.62, 269.10°)
OKLaboklab(64.36% -0.0357 -0.1059)
OKLCHoklch(64.36% 0.112 251.4)
XYZxyz(25.3143, 26.7798, 62.8544)
Luminance0.2678 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791CF #CF9557
analogous
#57CDCF #5791CF #5957CF
triadic
#5791CF #CF5791 #91CF57
tetradic
#5791CF #CF57CD #CF9557 #57CF59
square
#5791CF #CF57CD #CF9557 #57CF59
split-complementary
#5791CF #CF5957 #CDCF57
monochromatic
#265485 #3472B5 #5791CF #87B0DD #B6CFEA

Accessibility & contrast

On white

3.30
#5791CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#5791CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791CF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791CF#FFFFFF#000000##000000
##5791CF1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7794D2
Deuteranopia (green-blind)
#6788CE
Tritanopia (blue-blind)
#009FA7
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5791cf;
/* rgb */ color: rgb(87, 145, 207);
/* oklch */ color: oklch(64.4% 0.112 251.4);
Tailwind
colors: {
  custom: {
    50: '#8fb1de',
    500: '#5791cf',
    950: '#000000',
  },
}
SCSS
$custom: #5791cf;
$custom-light: #8fb1de;
$custom-dark: #000000;
JSON
{
  "hex": "#5791cf",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 207
  },
  "hsl": {
    "h": 211,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.64364,
    "c": 0.11179,
    "h": 251.4
  },
  "luminance": 0.26782
}

Semantic roles & 50–950 ramp

primary
#5791CF
secondary
#D9C2A9
accent
#9649DF
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D1015
muted
#7E7F83

Preview Lab

Preview with #5791CF

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

Preview Lab → · Contrast checker → · Palette generator →

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