#5A5AB1#5A5AB1

#5A5AB1 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.2% C 0.135 H 280.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5A5AB1
RGBrgb(90, 90, 177)
HSLhsl(240, 36%, 52%)
HSVhsv(240, 49%, 69%)
CMYKcmyk(49.2%, 49.2%, 0%, 30.6%)
CIE-LABlab(42.25, 23.90, -46.53)
CIE-LCHlch(42.25, 52.31, 297.18°)
OKLaboklab(51.15% 0.0246 -0.1324)
OKLCHoklch(51.15% 0.135 280.5)
XYZxyz(15.8060, 12.6595, 43.1971)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AB1 #B1B15A
analogous
#5A86B1 #5A5AB1 #865AB1
triadic
#5A5AB1 #B15A5A #5AB15A
tetradic
#5A5AB1 #B15A86 #B1B15A #5AB186
square
#5A5AB1 #B15A86 #B1B15A #5AB186
split-complementary
#5A5AB1 #B1865A #86B15A
monochromatic
#2E2E62 #42428C #5A5AB1 #8484C5 #ADADD8

Accessibility & contrast

On white

5.95
#5A5AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5A5AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AB1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AB1#FFFFFF#000000##FFFFFF
##5A5AB11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3367B4
Deuteranopia (green-blind)
#2C60AF
Tritanopia (blue-blind)
#3A6D7D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a5ab1;
/* rgb */ color: rgb(90, 90, 177);
/* oklch */ color: oklch(51.2% 0.135 280.5);
Tailwind
colors: {
  custom: {
    50: '#8e88c9',
    500: '#5a5ab1',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ab1;
$custom-light: #8e88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ab1",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 177
  },
  "hsl": {
    "h": 240,
    "s": 35.802,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51151,
    "c": 0.13465,
    "h": 280.5
  },
  "luminance": 0.1266
}

Semantic roles & 50–950 ramp

primary
#5A5AB1
secondary
#C6C6A0
accent
#CC5CCC
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5A5AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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