#5A6987#5A6987

#5A6987 is a mid, muted blue. Relative luminance 0.140; OKLCH L 52.0% C 0.051 H 264.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5A6987
RGBrgb(90, 105, 135)
HSLhsl(220, 20%, 44%)
HSVhsv(220, 33%, 53%)
CMYKcmyk(33.3%, 22.2%, 0%, 47.1%)
CIE-LABlab(44.27, 1.99, -18.40)
CIE-LCHlch(44.27, 18.51, 276.18°)
OKLaboklab(52.02% -0.0054 -0.0508)
OKLCHoklch(52.02% 0.051 264)
XYZxyz(13.6399, 14.0255, 24.9055)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6987 #87785A
analogous
#5A8087 #5A6987 #625A87
triadic
#5A6987 #875A69 #69875A
tetradic
#5A6987 #875A80 #87785A #5A8762
square
#5A6987 #875A80 #87785A #5A8762
split-complementary
#5A6987 #87625A #80875A
monochromatic
#29303E #424C62 #5A6987 #7988A5 #9DA8BE

Accessibility & contrast

On white

5.52
#5A6987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5A6987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6987
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6987#FFFFFF#000000##FFFFFF
##5A69871.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F6B88
Deuteranopia (green-blind)
#5B6786
Tritanopia (blue-blind)
#4D6F73
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a6987;
/* rgb */ color: rgb(90, 105, 135);
/* oklch */ color: oklch(52.0% 0.051 264.0);
Tailwind
colors: {
  custom: {
    50: '#8a93aa',
    500: '#5a6987',
    950: '#000000',
  },
}
SCSS
$custom: #5a6987;
$custom-light: #8a93aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6987",
  "rgb": {
    "r": 90,
    "g": 105,
    "b": 135
  },
  "hsl": {
    "h": 220,
    "s": 20,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52015,
    "c": 0.05107,
    "h": 264
  },
  "luminance": 0.14026
}

Semantic roles & 50–950 ramp

primary
#5A6987
secondary
#ACA391
accent
#A16BBD
background
#F8F9FA
surface
#F0F1F4
border
#CBCBCE
text
#0C0D10
muted
#7D7E7F

Preview Lab

Preview with #5A6987

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

Preview Lab → · Contrast checker → · Palette generator →

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