#5A5DCF#5A5DCF

#5A5DCF is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.8% C 0.172 H 277.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5A5DCF
RGBrgb(90, 93, 207)
HSLhsl(238, 55%, 58%)
HSVhsv(238, 57%, 81%)
CMYKcmyk(56.5%, 55.1%, 0%, 18.8%)
CIE-LABlab(44.95, 31.62, -59.61)
CIE-LCHlch(44.95, 67.47, 297.95°)
OKLaboklab(53.8% 0.0233 -0.1708)
OKLCHoklch(53.8% 0.172 277.8)
XYZxyz(19.3897, 14.5060, 60.7976)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DCF #CFCC5A
analogous
#5A97CF #5A5DCF #925ACF
triadic
#5A5DCF #CF5A5D #5DCF5A
tetradic
#5A5DCF #CF5A97 #CFCC5A #5ACF92
square
#5A5DCF #CF5A97 #CFCC5A #5ACF92
split-complementary
#5A5DCF #CF925A #97CF5A
monochromatic
#272A87 #3538B7 #5A5DCF #898CDD #B9BAEB

Accessibility & contrast

On white

5.38
#5A5DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5A5DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DCF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DCF#FFFFFF#000000##FFFFFF
##5A5DCF1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6FD3
Deuteranopia (green-blind)
#0066CD
Tritanopia (blue-blind)
#17778D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a5dcf;
/* rgb */ color: rgb(90, 93, 207);
/* oklch */ color: oklch(53.8% 0.172 277.8);
Tailwind
colors: {
  custom: {
    50: '#928bde',
    500: '#5a5dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a5dcf;
$custom-light: #928bde;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5dcf",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 207
  },
  "hsl": {
    "h": 238.462,
    "s": 54.93,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53802,
    "c": 0.17237,
    "h": 277.8
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#5A5DCF
secondary
#DAD9AB
accent
#DA4ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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