#5A5BDD#5A5BDD

#5A5BDD is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.5% C 0.194 H 277.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5A5BDD
RGBrgb(90, 91, 221)
HSLhsl(240, 66%, 61%)
HSVhsv(240, 59%, 87%)
CMYKcmyk(59.3%, 58.8%, 0%, 13.3%)
CIE-LABlab(45.46, 37.37, -66.77)
CIE-LCHlch(45.46, 76.52, 299.23°)
OKLaboklab(54.5% 0.0253 -0.1919)
OKLCHoklch(54.5% 0.194 277.5)
XYZxyz(21.0045, 14.8747, 70.1568)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BDD #DDDC5A
analogous
#5A9CDD #5A5BDD #9A5ADD
triadic
#5A5BDD #DD5A5B #5BDD5A
tetradic
#5A5BDD #DD5A9C #DDDC5A #5ADD9A
square
#5A5BDD #DD5A9C #DDDC5A #5ADD9A
split-complementary
#5A5BDD #DD9A5A #9CDD5A
monochromatic
#20219C #2B2CCF #5A5BDD #8D8DE7 #BFC0F2

Accessibility & contrast

On white

5.28
#5A5BDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5A5BDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BDD
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BDD#FFFFFF#000000##FFFFFF
##5A5BDD1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E1
Deuteranopia (green-blind)
#0066DA
Tritanopia (blue-blind)
#007A93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a5bdd;
/* rgb */ color: rgb(90, 91, 221);
/* oklch */ color: oklch(54.5% 0.194 277.5);
Tailwind
colors: {
  custom: {
    50: '#9589e8',
    500: '#5a5bdd',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bdd;
$custom-light: #9589e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bdd",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 221
  },
  "hsl": {
    "h": 239.542,
    "s": 65.829,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54496,
    "c": 0.19355,
    "h": 277.5
  },
  "luminance": 0.14876
}

Semantic roles & 50–950 ramp

primary
#5A5BDD
secondary
#E2E2B1
accent
#CC18CE
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A5BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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