#5B5CDA#5B5CDA

#5B5CDA is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.5% C 0.188 H 277.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5B5CDA
RGBrgb(91, 92, 218)
HSLhsl(240, 63%, 61%)
HSVhsv(240, 58%, 85%)
CMYKcmyk(58.3%, 57.8%, 0%, 14.5%)
CIE-LABlab(45.55, 35.97, -64.92)
CIE-LCHlch(45.55, 74.22, 298.99°)
OKLaboklab(54.51% 0.0256 -0.1864)
OKLCHoklch(54.51% 0.188 277.8)
XYZxyz(20.7924, 14.9389, 68.1039)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CDA #DAD95B
analogous
#5B9BDA #5B5CDA #9A5BDA
triadic
#5B5CDA #DA5B5C #5CDA5B
tetradic
#5B5CDA #DA5B9B #DAD95B #5BDA9A
square
#5B5CDA #DA5B9B #DAD95B #5BDA9A
split-complementary
#5B5CDA #DA9A5B #9BDA5B
monochromatic
#222398 #2E2FCA #5B5CDA #8D8EE5 #BFBFF1

Accessibility & contrast

On white

5.27
#5B5CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5B5CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CDA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CDA#FFFFFF#000000##FFFFFF
##5B5CDA1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#0067D7
Tritanopia (blue-blind)
#007A92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5cda;
/* rgb */ color: rgb(91, 92, 218);
/* oklch */ color: oklch(54.5% 0.188 277.8);
Tailwind
colors: {
  custom: {
    50: '#958ae6',
    500: '#5b5cda',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cda;
$custom-light: #958ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cda",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 239.528,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.5451,
    "c": 0.18814,
    "h": 277.8
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#5B5CDA
secondary
#E1E0B0
accent
#CA1BCB
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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