#5A5BC2#5A5BC2

#5A5BC2 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.5% C 0.157 H 279.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5A5BC2
RGBrgb(90, 91, 194)
HSLhsl(239, 46%, 56%)
HSVhsv(239, 54%, 76%)
CMYKcmyk(53.6%, 53.1%, 0%, 23.9%)
CIE-LABlab(43.58, 28.67, -54.32)
CIE-LCHlch(43.58, 61.42, 297.83°)
OKLaboklab(52.5% 0.0248 -0.1552)
OKLCHoklch(52.5% 0.157 279.1)
XYZxyz(17.6921, 13.5498, 52.7116)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BC2 #C2C15A
analogous
#5A8FC2 #5A5BC2 #8D5AC2
triadic
#5A5BC2 #C25A5B #5BC25A
tetradic
#5A5BC2 #C25A8F #C2C15A #5AC28D
square
#5A5BC2 #C25A8F #C2C15A #5AC28D
split-complementary
#5A5BC2 #C28D5A #8FC25A
monochromatic
#2C2C76 #3C3DA3 #5A5BC2 #8787D3 #B3B4E3

Accessibility & contrast

On white

5.66
#5A5BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5A5BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BC2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BC2#FFFFFF#000000##FFFFFF
##5A5BC21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC6
Deuteranopia (green-blind)
#0F63C0
Tritanopia (blue-blind)
#2B7286
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a5bc2;
/* rgb */ color: rgb(90, 91, 194);
/* oklch */ color: oklch(52.5% 0.157 279.1);
Tailwind
colors: {
  custom: {
    50: '#9189d5',
    500: '#5a5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bc2;
$custom-light: #9189d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bc2",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 239.423,
    "s": 46.018,
    "l": 55.686
  },
  "oklch": {
    "l": 0.525,
    "c": 0.15721,
    "h": 279.1
  },
  "luminance": 0.13551
}

Semantic roles & 50–950 ramp

primary
#5A5BC2
secondary
#D2D1A6
accent
#D452D6
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5A5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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