#5A5DCC#5A5DCC

#5A5DCC is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.6% C 0.168 H 277.9°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5A5DCC
RGBrgb(90, 93, 204)
HSLhsl(238, 53%, 58%)
HSVhsv(238, 56%, 80%)
CMYKcmyk(55.9%, 54.4%, 0%, 20%)
CIE-LABlab(44.75, 30.65, -58.21)
CIE-LCHlch(44.75, 65.79, 297.77°)
OKLaboklab(53.58% 0.0232 -0.1667)
OKLCHoklch(53.58% 0.168 277.9)
XYZxyz(19.0264, 14.3607, 58.8843)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DCC #CCC95A
analogous
#5A96CC #5A5DCC #905ACC
triadic
#5A5DCC #CC5A5D #5DCC5A
tetradic
#5A5DCC #CC5A96 #CCC95A #5ACC90
square
#5A5DCC #CC5A96 #CCC95A #5ACC90
split-complementary
#5A5DCC #CC905A #96CC5A
monochromatic
#292B83 #373AB2 #5A5DCC #898BDA #B7B9E9

Accessibility & contrast

On white

5.42
#5A5DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5A5DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DCC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DCC#FFFFFF#000000##FFFFFF
##5A5DCC1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD0
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#1D778B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5dcc;
/* rgb */ color: rgb(90, 93, 204);
/* oklch */ color: oklch(53.6% 0.168 277.9);
Tailwind
colors: {
  custom: {
    50: '#928bdc',
    500: '#5a5dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a5dcc;
$custom-light: #928bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5dcc",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 238.421,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53584,
    "c": 0.16829,
    "h": 277.9
  },
  "luminance": 0.14362
}

Semantic roles & 50–950 ramp

primary
#5A5DCC
secondary
#D8D7AA
accent
#D84CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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