#5B5CCC#5B5CCC

#5B5CCC is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.5% C 0.169 H 278.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5B5CCC
RGBrgb(91, 92, 204)
HSLhsl(239, 53%, 58%)
HSVhsv(239, 55%, 80%)
CMYKcmyk(55.4%, 54.9%, 0%, 20%)
CIE-LABlab(44.57, 31.46, -58.49)
CIE-LCHlch(44.57, 66.42, 298.28°)
OKLaboklab(53.47% 0.0254 -0.1675)
OKLCHoklch(53.47% 0.169 278.6)
XYZxyz(19.0372, 14.2368, 58.8599)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CCC #CCCB5B
analogous
#5B94CC #5B5CCC #925BCC
triadic
#5B5CCC #CC5B5C #5CCC5B
tetradic
#5B5CCC #CC5B94 #CCCB5B #5BCC92
square
#5B5CCC #CC5B94 #CCCB5B #5BCC92
split-complementary
#5B5CCC #CC925B #94CC5B
monochromatic
#292A84 #3739B2 #5B5CCC #8A8ADB #B8B9E9

Accessibility & contrast

On white

5.46
#5B5CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5B5CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CCC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CCC#FFFFFF#000000##FFFFFF
##5B5CCC1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6ED0
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#21768B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b5ccc;
/* rgb */ color: rgb(91, 92, 204);
/* oklch */ color: oklch(53.5% 0.169 278.6);
Tailwind
colors: {
  custom: {
    50: '#928adc',
    500: '#5b5ccc',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ccc;
$custom-light: #928adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ccc",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 239.469,
    "s": 52.558,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53472,
    "c": 0.1694,
    "h": 278.6
  },
  "luminance": 0.14238
}

Semantic roles & 50–950 ramp

primary
#5B5CCC
secondary
#D8D8AB
accent
#DB4CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B5CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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