#5A5BCB#5A5BCB

#5A5BCB is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.1% C 0.170 H 278.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5A5BCB
RGBrgb(90, 91, 203)
HSLhsl(239, 52%, 57%)
HSVhsv(239, 56%, 80%)
CMYKcmyk(55.7%, 55.2%, 0%, 20.4%)
CIE-LABlab(44.18, 31.56, -58.54)
CIE-LCHlch(44.18, 66.51, 298.33°)
OKLaboklab(53.14% 0.0252 -0.1677)
OKLCHoklch(53.14% 0.17 278.6)
XYZxyz(18.7336, 13.9664, 58.1969)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BCB #CBCA5A
analogous
#5A94CB #5A5BCB #915ACB
triadic
#5A5BCB #CB5A5B #5BCB5A
tetradic
#5A5BCB #CB5A94 #CBCA5A #5ACB91
square
#5A5BCB #CB5A94 #CBCA5A #5ACB91
split-complementary
#5A5BCB #CB915A #94CB5A
monochromatic
#292A82 #3839B0 #5A5BCB #8989DA #B7B8E8

Accessibility & contrast

On white

5.54
#5A5BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5A5BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BCB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BCB#FFFFFF#000000##FFFFFF
##5A5BCB1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6DCF
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#1F758A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a5bcb;
/* rgb */ color: rgb(90, 91, 203);
/* oklch */ color: oklch(53.1% 0.170 278.6);
Tailwind
colors: {
  custom: {
    50: '#9289dc',
    500: '#5a5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bcb;
$custom-light: #9289dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bcb",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 239.469,
    "s": 52.074,
    "l": 57.451
  },
  "oklch": {
    "l": 0.53144,
    "c": 0.16957,
    "h": 278.6
  },
  "luminance": 0.13968
}

Semantic roles & 50–950 ramp

primary
#5A5BCB
secondary
#D7D7AA
accent
#DA4CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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