#5A6281#5A6281

#5A6281 is a mid, muted blue. Relative luminance 0.125; OKLCH L 50.2% C 0.051 H 273.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5A6281
RGBrgb(90, 98, 129)
HSLhsl(228, 18%, 43%)
HSVhsv(228, 30%, 51%)
CMYKcmyk(30.2%, 24%, 0%, 49.4%)
CIE-LABlab(41.99, 4.62, -18.29)
CIE-LCHlch(41.99, 18.86, 284.18°)
OKLaboklab(50.16% 0.0029 -0.0504)
OKLCHoklch(50.16% 0.051 273.2)
XYZxyz(12.5455, 12.4936, 22.5151)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6281 #81795A
analogous
#5A7581 #5A6281 #655A81
triadic
#5A6281 #815A62 #62815A
tetradic
#5A6281 #815A75 #81795A #5A8165
square
#5A6281 #815A75 #81795A #5A8165
split-complementary
#5A6281 #81655A #75815A
monochromatic
#282B39 #41475D #5A6281 #7880A1 #9CA2BA

Accessibility & contrast

On white

6.00
#5A6281 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5A6281 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6281
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6281#FFFFFF#000000##FFFFFF
##5A62811.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596582
Deuteranopia (green-blind)
#566280
Tritanopia (blue-blind)
#50686D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a6281;
/* rgb */ color: rgb(90, 98, 129);
/* oklch */ color: oklch(50.2% 0.051 273.2);
Tailwind
colors: {
  custom: {
    50: '#898ea5',
    500: '#5a6281',
    950: '#000000',
  },
}
SCSS
$custom: #5a6281;
$custom-light: #898ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6281",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 129
  },
  "hsl": {
    "h": 227.692,
    "s": 17.808,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50155,
    "c": 0.05051,
    "h": 273.2
  },
  "luminance": 0.12494
}

Semantic roles & 50–950 ramp

primary
#5A6281
secondary
#A8A38F
accent
#AB6DBA
background
#F8F8FA
surface
#F0F0F4
border
#CBCBCE
text
#0B0C0F
muted
#7C7D7F

Preview Lab

Preview with #5A6281

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

Preview Lab → · Contrast checker → · Palette generator →

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