#5A5BCD#5A5BCD

#5A5BCD is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.3% C 0.172 H 278.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5A5BCD
RGBrgb(90, 91, 205)
HSLhsl(239, 53%, 58%)
HSVhsv(239, 56%, 80%)
CMYKcmyk(56.1%, 55.6%, 0%, 19.6%)
CIE-LABlab(44.32, 32.21, -59.47)
CIE-LCHlch(44.32, 67.63, 298.44°)
OKLaboklab(53.29% 0.0253 -0.1704)
OKLCHoklch(53.29% 0.172 278.4)
XYZxyz(18.9735, 14.0623, 59.4603)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BCD #CDCC5A
analogous
#5A95CD #5A5BCD #925ACD
triadic
#5A5BCD #CD5A5B #5BCD5A
tetradic
#5A5BCD #CD5A95 #CDCC5A #5ACD92
square
#5A5BCD #CD5A95 #CDCC5A #5ACD92
split-complementary
#5A5BCD #CD925A #95CD5A
monochromatic
#282984 #3637B3 #5A5BCD #898ADB #B8B8E9

Accessibility & contrast

On white

5.51
#5A5BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5A5BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BCD
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BCD#FFFFFF#000000##FFFFFF
##5A5BCD1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026ED1
Deuteranopia (green-blind)
#0064CB
Tritanopia (blue-blind)
#1B758B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a5bcd;
/* rgb */ color: rgb(90, 91, 205);
/* oklch */ color: oklch(53.3% 0.172 278.4);
Tailwind
colors: {
  custom: {
    50: '#9289dd',
    500: '#5a5bcd',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bcd;
$custom-light: #9289dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bcd",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 205
  },
  "hsl": {
    "h": 239.478,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5329,
    "c": 0.17227,
    "h": 278.4
  },
  "luminance": 0.14064
}

Semantic roles & 50–950 ramp

primary
#5A5BCD
secondary
#D8D8AA
accent
#DC4BDD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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