#5B5BCB#5B5BCB

#5B5BCB is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.2% C 0.169 H 279.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5B5BCB
RGBrgb(91, 91, 203)
HSLhsl(240, 52%, 58%)
HSVhsv(240, 55%, 80%)
CMYKcmyk(55.2%, 55.2%, 0%, 20.4%)
CIE-LABlab(44.26, 31.76, -58.42)
CIE-LCHlch(44.26, 66.50, 298.53°)
OKLaboklab(53.22% 0.0264 -0.1673)
OKLCHoklch(53.22% 0.169 279)
XYZxyz(18.8316, 14.0169, 58.2015)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BCB #CBCB5B
analogous
#5B93CB #5B5BCB #935BCB
triadic
#5B5BCB #CB5B5B #5BCB5B
tetradic
#5B5BCB #CB5B93 #CBCB5B #5BCB93
square
#5B5BCB #CB5B93 #CBCB5B #5BCB93
split-complementary
#5B5BCB #CB935B #93CB5B
monochromatic
#292982 #3838B1 #5B5BCB #8989DA #B8B8E8

Accessibility & contrast

On white

5.52
#5B5BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5B5BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BCB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BCB#FFFFFF#000000##FFFFFF
##5B5BCB1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6DCF
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#23758A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b5bcb;
/* rgb */ color: rgb(91, 91, 203);
/* oklch */ color: oklch(53.2% 0.169 279.0);
Tailwind
colors: {
  custom: {
    50: '#9289dc',
    500: '#5b5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bcb;
$custom-light: #9289dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bcb",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 240,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53217,
    "c": 0.16937,
    "h": 279
  },
  "luminance": 0.14018
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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