#5A5CA2#5A5CA2

#5A5CA2 is a mid, moderate blue. Relative luminance 0.124; OKLCH L 50.6% C 0.110 H 280.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5A5CA2
RGBrgb(90, 92, 162)
HSLhsl(238, 29%, 49%)
HSVhsv(238, 44%, 64%)
CMYKcmyk(44.4%, 43.2%, 0%, 36.5%)
CIE-LABlab(41.90, 17.98, -38.22)
CIE-LCHlch(41.90, 42.24, 295.19°)
OKLaboklab(50.61% 0.02 -0.108)
OKLCHoklch(50.61% 0.11 280.5)
XYZxyz(14.5632, 12.4359, 35.8084)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CA2 #A2A05A
analogous
#5A80A2 #5A5CA2 #7C5AA2
triadic
#5A5CA2 #A25A5C #5CA25A
tetradic
#5A5CA2 #A25A80 #A2A05A #5AA27C
square
#5A5CA2 #A25A80 #A2A05A #5AA27C
split-complementary
#5A5CA2 #A27C5A #80A25A
monochromatic
#2E2F53 #44467B #5A5CA2 #8082B9 #A8A9CF

Accessibility & contrast

On white

6.02
#5A5CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5A5CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CA2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CA2#FFFFFF#000000##FFFFFF
##5A5CA21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#3D60A0
Tritanopia (blue-blind)
#436A77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a5ca2;
/* rgb */ color: rgb(90, 92, 162);
/* oklch */ color: oklch(50.6% 0.110 280.5);
Tailwind
colors: {
  custom: {
    50: '#8c8abe',
    500: '#5a5ca2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ca2;
$custom-light: #8c8abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ca2",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 238.333,
    "s": 28.571,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50607,
    "c": 0.10983,
    "h": 280.5
  },
  "luminance": 0.12437
}

Semantic roles & 50–950 ramp

primary
#5A5CA2
secondary
#BDBC9B
accent
#C263C5
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #5A5CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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