#5A5BCF#5A5BCF

#5A5BCF is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.4% C 0.175 H 278.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5A5BCF
RGBrgb(90, 91, 207)
HSLhsl(239, 55%, 58%)
HSVhsv(239, 57%, 81%)
CMYKcmyk(56.5%, 56%, 0%, 18.8%)
CIE-LABlab(44.46, 32.85, -60.40)
CIE-LCHlch(44.46, 68.75, 298.54°)
OKLaboklab(53.44% 0.0253 -0.1731)
OKLCHoklch(53.44% 0.175 278.3)
XYZxyz(19.2164, 14.1595, 60.7398)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BCF #CFCE5A
analogous
#5A95CF #5A5BCF #935ACF
triadic
#5A5BCF #CF5A5B #5BCF5A
tetradic
#5A5BCF #CF5A95 #CFCE5A #5ACF93
square
#5A5BCF #CF5A95 #CFCE5A #5ACF93
split-complementary
#5A5BCF #CF935A #95CF5A
monochromatic
#272887 #3536B7 #5A5BCF #898ADD #B9B9EB

Accessibility & contrast

On white

5.48
#5A5BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5A5BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BCF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BCF#FFFFFF#000000##FFFFFF
##5A5BCF1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#0064CD
Tritanopia (blue-blind)
#17768C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a5bcf;
/* rgb */ color: rgb(90, 91, 207);
/* oklch */ color: oklch(53.4% 0.175 278.3);
Tailwind
colors: {
  custom: {
    50: '#9289de',
    500: '#5a5bcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bcf;
$custom-light: #9289de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bcf",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 207
  },
  "hsl": {
    "h": 239.487,
    "s": 54.93,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53437,
    "c": 0.17497,
    "h": 278.3
  },
  "luminance": 0.14161
}

Semantic roles & 50–950 ramp

primary
#5A5BCF
secondary
#DAD9AB
accent
#DD4ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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