#5A5DC0#5A5DC0

#5A5DC0 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.152 H 278.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A5DC0
RGBrgb(90, 93, 192)
HSLhsl(238, 45%, 55%)
HSVhsv(238, 53%, 75%)
CMYKcmyk(53.1%, 51.6%, 0%, 24.7%)
CIE-LABlab(43.95, 26.79, -52.55)
CIE-LCHlch(43.95, 58.99, 297.01°)
OKLaboklab(52.74% 0.0225 -0.15)
OKLCHoklch(52.74% 0.152 278.5)
XYZxyz(17.6422, 13.8070, 51.5943)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DC0 #C0BD5A
analogous
#5A90C0 #5A5DC0 #8A5AC0
triadic
#5A5DC0 #C05A5D #5DC05A
tetradic
#5A5DC0 #C05A90 #C0BD5A #5AC08A
square
#5A5DC0 #C05A90 #C0BD5A #5AC08A
split-complementary
#5A5DC0 #C08A5A #90C05A
monochromatic
#2C2E73 #3D40A0 #5A5DC0 #8688D1 #B3B4E2

Accessibility & contrast

On white

5.58
#5A5DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5A5DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DC0
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DC0#FFFFFF#000000##FFFFFF
##5A5DC01.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6CC3
Deuteranopia (green-blind)
#1C64BE
Tritanopia (blue-blind)
#2D7385
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a5dc0;
/* rgb */ color: rgb(90, 93, 192);
/* oklch */ color: oklch(52.7% 0.152 278.5);
Tailwind
colors: {
  custom: {
    50: '#908ad4',
    500: '#5a5dc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a5dc0;
$custom-light: #908ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5dc0",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 192
  },
  "hsl": {
    "h": 238.235,
    "s": 44.737,
    "l": 55.294
  },
  "oklch": {
    "l": 0.52739,
    "c": 0.15172,
    "h": 278.5
  },
  "luminance": 0.13808
}

Semantic roles & 50–950 ramp

primary
#5A5DC0
secondary
#D0CFA6
accent
#D153D4
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5A5DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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