#5B5BD2#5B5BD2

#5B5BD2 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.7% C 0.179 H 278.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5B5BD2
RGBrgb(91, 91, 210)
HSLhsl(240, 57%, 59%)
HSVhsv(240, 57%, 82%)
CMYKcmyk(56.7%, 56.7%, 0%, 17.6%)
CIE-LABlab(44.74, 34.00, -61.66)
CIE-LCHlch(44.74, 70.41, 298.88°)
OKLaboklab(53.73% 0.0265 -0.1768)
OKLCHoklch(53.73% 0.179 278.5)
XYZxyz(19.6846, 14.3581, 62.6944)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BD2 #D2D25B
analogous
#5B97D2 #5B5BD2 #975BD2
triadic
#5B5BD2 #D25B5B #5BD25B
tetradic
#5B5BD2 #D25B97 #D2D25B #5BD297
square
#5B5BD2 #D25B97 #D2D25B #5BD297
split-complementary
#5B5BD2 #D2975B #97D25B
monochromatic
#26268C #3434BC #5B5BD2 #8B8BDF #BBBBEC

Accessibility & contrast

On white

5.42
#5B5BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5B5BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BD2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BD2#FFFFFF#000000##FFFFFF
##5B5BD21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#0065D0
Tritanopia (blue-blind)
#16778E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b5bd2;
/* rgb */ color: rgb(91, 91, 210);
/* oklch */ color: oklch(53.7% 0.179 278.5);
Tailwind
colors: {
  custom: {
    50: '#9389e1',
    500: '#5b5bd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bd2;
$custom-light: #9389e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bd2",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 240,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53731,
    "c": 0.1788,
    "h": 278.5
  },
  "luminance": 0.14359
}

Semantic roles & 50–950 ramp

primary
#5B5BD2
secondary
#DCDCAD
accent
#E048E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B5BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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