#5A6787#5A6787

#5A6787 is a mid, muted blue. Relative luminance 0.136; OKLCH L 51.6% C 0.053 H 267.4°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5A6787
RGBrgb(90, 103, 135)
HSLhsl(223, 20%, 44%)
HSVhsv(223, 33%, 53%)
CMYKcmyk(33.3%, 23.7%, 0%, 47.1%)
CIE-LABlab(43.69, 3.21, -19.29)
CIE-LCHlch(43.69, 19.56, 279.44°)
OKLaboklab(51.56% -0.0024 -0.0533)
OKLCHoklch(51.56% 0.053 267.4)
XYZxyz(13.4386, 13.6229, 24.8384)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6787 #877A5A
analogous
#5A7E87 #5A6787 #645A87
triadic
#5A6787 #875A67 #67875A
tetradic
#5A6787 #875A7E #877A5A #5A8764
square
#5A6787 #875A7E #877A5A #5A8764
split-complementary
#5A6787 #87645A #7E875A
monochromatic
#292F3E #424B62 #5A6787 #7986A5 #9DA7BE

Accessibility & contrast

On white

5.64
#5A6787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5A6787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6787
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6787#FFFFFF#000000##FFFFFF
##5A67871.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6988
Deuteranopia (green-blind)
#596586
Tritanopia (blue-blind)
#4D6D72
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a6787;
/* rgb */ color: rgb(90, 103, 135);
/* oklch */ color: oklch(51.6% 0.053 267.4);
Tailwind
colors: {
  custom: {
    50: '#8a92aa',
    500: '#5a6787',
    950: '#000000',
  },
}
SCSS
$custom: #5a6787;
$custom-light: #8a92aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6787",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 135
  },
  "hsl": {
    "h": 222.667,
    "s": 20,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5156,
    "c": 0.05338,
    "h": 267.4
  },
  "luminance": 0.13623
}

Semantic roles & 50–950 ramp

primary
#5A6787
secondary
#ACA491
accent
#A56BBD
background
#F8F8FA
surface
#F0F0F4
border
#CBCBCE
text
#0C0D10
muted
#7D7D7F

Preview Lab

Preview with #5A6787

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

Preview Lab → · Contrast checker → · Palette generator →

#5A6787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva