#5B5DCF#5B5DCF

#5B5DCF is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.9% C 0.172 H 278.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5B5DCF
RGBrgb(91, 93, 207)
HSLhsl(239, 55%, 58%)
HSVhsv(239, 56%, 81%)
CMYKcmyk(56%, 55.1%, 0%, 18.8%)
CIE-LABlab(45.02, 31.81, -59.49)
CIE-LCHlch(45.02, 67.46, 298.14°)
OKLaboklab(53.87% 0.0245 -0.1704)
OKLCHoklch(53.87% 0.172 278.2)
XYZxyz(19.4876, 14.5565, 60.8022)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DCF #CFCD5B
analogous
#5B97CF #5B5DCF #935BCF
triadic
#5B5DCF #CF5B5D #5DCF5B
tetradic
#5B5DCF #CF5B97 #CFCD5B #5BCF93
square
#5B5DCF #CF5B97 #CFCD5B #5BCF93
split-complementary
#5B5DCF #CF935B #97CF5B
monochromatic
#282988 #3638B7 #5B5DCF #8A8CDD #BABBEB

Accessibility & contrast

On white

5.37
#5B5DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B5DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DCF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DCF#FFFFFF#000000##FFFFFF
##5B5DCF1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6FD3
Deuteranopia (green-blind)
#0066CD
Tritanopia (blue-blind)
#1C778D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5dcf;
/* rgb */ color: rgb(91, 93, 207);
/* oklch */ color: oklch(53.9% 0.172 278.2);
Tailwind
colors: {
  custom: {
    50: '#938bde',
    500: '#5b5dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5b5dcf;
$custom-light: #938bde;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5dcf",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 207
  },
  "hsl": {
    "h": 238.966,
    "s": 54.717,
    "l": 58.431
  },
  "oklch": {
    "l": 0.53872,
    "c": 0.17216,
    "h": 278.2
  },
  "luminance": 0.14558
}

Semantic roles & 50–950 ramp

primary
#5B5DCF
secondary
#DAD9AC
accent
#DC4ADE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5B5DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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