#5A5BD7#5A5BD7

#5A5BD7 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 54.0% C 0.186 H 277.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5A5BD7
RGBrgb(90, 91, 215)
HSLhsl(240, 61%, 60%)
HSVhsv(240, 58%, 84%)
CMYKcmyk(58.1%, 57.7%, 0%, 15.7%)
CIE-LABlab(45.03, 35.43, -64.06)
CIE-LCHlch(45.03, 73.21, 298.95°)
OKLaboklab(54.04% 0.0254 -0.1839)
OKLCHoklch(54.04% 0.186 277.8)
XYZxyz(20.2194, 14.5607, 66.0218)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BD7 #D7D65A
analogous
#5A9AD7 #5A5BD7 #985AD7
triadic
#5A5BD7 #D75A5B #5BD75A
tetradic
#5A5BD7 #D75A9A #D7D65A #5AD798
square
#5A5BD7 #D75A9A #D7D65A #5AD798
split-complementary
#5A5BD7 #D7985A #9AD75A
monochromatic
#242593 #3031C4 #5A5BD7 #8B8CE3 #BDBDEF

Accessibility & contrast

On white

5.37
#5A5BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5A5BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BD7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BD7#FFFFFF#000000##FFFFFF
##5A5BD71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#0065D4
Tritanopia (blue-blind)
#007990
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5bd7;
/* rgb */ color: rgb(90, 91, 215);
/* oklch */ color: oklch(54.0% 0.186 277.8);
Tailwind
colors: {
  custom: {
    50: '#9489e4',
    500: '#5a5bd7',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bd7;
$custom-light: #9489e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bd7",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 239.52,
    "s": 60.976,
    "l": 59.804
  },
  "oklch": {
    "l": 0.54036,
    "c": 0.18565,
    "h": 277.8
  },
  "luminance": 0.14562
}

Semantic roles & 50–950 ramp

primary
#5A5BD7
secondary
#DFDEAE
accent
#E344E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A5BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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