#5B5CDB#5B5CDB

#5B5CDB is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.6% C 0.189 H 277.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5B5CDB
RGBrgb(91, 92, 219)
HSLhsl(240, 64%, 61%)
HSVhsv(240, 58%, 86%)
CMYKcmyk(58.4%, 58%, 0%, 14.1%)
CIE-LABlab(45.62, 36.29, -65.37)
CIE-LCHlch(45.62, 74.77, 299.04°)
OKLaboklab(54.59% 0.0255 -0.1877)
OKLCHoklch(54.59% 0.189 277.7)
XYZxyz(20.9236, 14.9914, 68.7951)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CDB #DBDA5B
analogous
#5B9CDB #5B5CDB #9A5BDB
triadic
#5B5CDB #DB5B5C #5CDB5B
tetradic
#5B5CDB #DB5B9C #DBDA5B #5BDB9A
square
#5B5CDB #DB5B9C #DBDA5B #5BDB9A
split-complementary
#5B5CDB #DB9A5B #9CDB5B
monochromatic
#22239A #2D2ECC #5B5CDB #8D8EE6 #BFC0F1

Accessibility & contrast

On white

5.25
#5B5CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5B5CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CDB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CDB#FFFFFF#000000##FFFFFF
##5B5CDB1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#007A93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5cdb;
/* rgb */ color: rgb(91, 92, 219);
/* oklch */ color: oklch(54.6% 0.189 277.7);
Tailwind
colors: {
  custom: {
    50: '#958ae7',
    500: '#5b5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cdb;
$custom-light: #958ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cdb",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 239.531,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.54586,
    "c": 0.18946,
    "h": 277.7
  },
  "luminance": 0.14993
}

Semantic roles & 50–950 ramp

primary
#5B5CDB
secondary
#E1E1B1
accent
#CA1ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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