#5B5BDA#5B5BDA

#5B5BDA is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.3% C 0.189 H 278.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5B5BDA
RGBrgb(91, 91, 218)
HSLhsl(240, 63%, 61%)
HSVhsv(240, 58%, 85%)
CMYKcmyk(58.3%, 58.3%, 0%, 14.5%)
CIE-LABlab(45.31, 36.57, -65.30)
CIE-LCHlch(45.31, 74.85, 299.25°)
OKLaboklab(54.34% 0.0265 -0.1875)
OKLCHoklch(54.34% 0.189 278)
XYZxyz(20.7063, 14.7668, 68.0752)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BDA #DADA5B
analogous
#5B9ADA #5B5BDA #9A5BDA
triadic
#5B5BDA #DA5B5B #5BDA5B
tetradic
#5B5BDA #DA5B9A #DADA5B #5BDA9A
square
#5B5BDA #DA5B9A #DADA5B #5BDA9A
split-complementary
#5B5BDA #DA9A5B #9ADA5B
monochromatic
#222298 #2E2ECA #5B5BDA #8D8DE5 #BFBFF1

Accessibility & contrast

On white

5.31
#5B5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5B5BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BDA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BDA#FFFFFF#000000##FFFFFF
##5B5BDA1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#0066D7
Tritanopia (blue-blind)
#007992
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5bda;
/* rgb */ color: rgb(91, 91, 218);
/* oklch */ color: oklch(54.3% 0.189 278.0);
Tailwind
colors: {
  custom: {
    50: '#9589e6',
    500: '#5b5bda',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bda;
$custom-light: #9589e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bda",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 240,
    "s": 63.184,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54335,
    "c": 0.1894,
    "h": 278
  },
  "luminance": 0.14768
}

Semantic roles & 50–950 ramp

primary
#5B5BDA
secondary
#E1E1B0
accent
#CB1BCB
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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