#5A5ABE#5A5ABE

#5A5ABE is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.0% C 0.153 H 279.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5A5ABE
RGBrgb(90, 90, 190)
HSLhsl(240, 43%, 55%)
HSVhsv(240, 53%, 75%)
CMYKcmyk(52.6%, 52.6%, 0%, 25.5%)
CIE-LABlab(43.07, 28.02, -52.82)
CIE-LCHlch(43.07, 59.79, 297.94°)
OKLaboklab(52.03% 0.0257 -0.1509)
OKLCHoklch(52.03% 0.153 279.7)
XYZxyz(17.1640, 13.2027, 50.3491)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5ABE #BEBE5A
analogous
#5A8CBE #5A5ABE #8C5ABE
triadic
#5A5ABE #BE5A5A #5ABE5A
tetradic
#5A5ABE #BE5A8C #BEBE5A #5ABE8C
square
#5A5ABE #BE5A8C #BEBE5A #5ABE8C
split-complementary
#5A5ABE #BE8C5A #8CBE5A
monochromatic
#2D2D71 #3E3E9D #5A5ABE #8686CF #B2B2E1

Accessibility & contrast

On white

5.77
#5A5ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5A5ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5ABE
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5ABE#FFFFFF#000000##FFFFFF
##5A5ABE1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246AC2
Deuteranopia (green-blind)
#1662BC
Tritanopia (blue-blind)
#2F7083
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a5abe;
/* rgb */ color: rgb(90, 90, 190);
/* oklch */ color: oklch(52.0% 0.153 279.7);
Tailwind
colors: {
  custom: {
    50: '#9088d2',
    500: '#5a5abe',
    950: '#000000',
  },
}
SCSS
$custom: #5a5abe;
$custom-light: #9088d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5abe",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 190
  },
  "hsl": {
    "h": 240,
    "s": 43.478,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52032,
    "c": 0.15303,
    "h": 279.7
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#5A5ABE
secondary
#CFCFA5
accent
#D355D3
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5A5ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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