#5A5CA5#5A5CA5

#5A5CA5 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.8% C 0.114 H 280.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5A5CA5
RGBrgb(90, 92, 165)
HSLhsl(238, 29%, 50%)
HSVhsv(238, 45%, 65%)
CMYKcmyk(45.5%, 44.2%, 0%, 35.3%)
CIE-LABlab(42.07, 18.90, -39.74)
CIE-LCHlch(42.07, 44.00, 295.44°)
OKLaboklab(50.79% 0.0205 -0.1124)
OKLCHoklch(50.79% 0.114 280.3)
XYZxyz(14.8331, 12.5439, 37.2296)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CA5 #A5A35A
analogous
#5A82A5 #5A5CA5 #7D5AA5
triadic
#5A5CA5 #A55A5C #5CA55A
tetradic
#5A5CA5 #A55A82 #A5A35A #5AA57D
square
#5A5CA5 #A55A82 #A5A35A #5AA57D
split-complementary
#5A5CA5 #A57D5A #82A55A
monochromatic
#2F3056 #44467D #5A5CA5 #8283BB #A9AAD0

Accessibility & contrast

On white

5.98
#5A5CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5A5CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CA5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CA5#FFFFFF#000000##FFFFFF
##5A5CA51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4066A8
Deuteranopia (green-blind)
#3B61A3
Tritanopia (blue-blind)
#416B78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a5ca5;
/* rgb */ color: rgb(90, 92, 165);
/* oklch */ color: oklch(50.8% 0.114 280.3);
Tailwind
colors: {
  custom: {
    50: '#8d8ac0',
    500: '#5a5ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ca5;
$custom-light: #8d8ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ca5",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 238.4,
    "s": 29.412,
    "l": 50
  },
  "oklch": {
    "l": 0.50788,
    "c": 0.11428,
    "h": 280.3
  },
  "luminance": 0.12545
}

Semantic roles & 50–950 ramp

primary
#5A5CA5
secondary
#BEBD9D
accent
#C362C6
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #5A5CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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