#5D51BB#5D51BB

#5D51BB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.161 H 284.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5D51BB
RGBrgb(93, 81, 187)
HSLhsl(247, 44%, 53%)
HSVhsv(247, 57%, 73%)
CMYKcmyk(50.3%, 56.7%, 0%, 26.7%)
CIE-LABlab(40.89, 33.26, -54.56)
CIE-LCHlch(40.89, 63.90, 301.36°)
OKLaboklab(50.41% 0.0393 -0.1559)
OKLCHoklch(50.41% 0.161 284.2)
XYZxyz(16.4236, 11.7990, 48.4161)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51BB #AFBB51
analogous
#517ABB #5D51BB #9251BB
triadic
#5D51BB #BB5D51 #51BB5D
tetradic
#5D51BB #BB517A #AFBB51 #51BB92
square
#5D51BB #BB517A #AFBB51 #51BB92
split-complementary
#5D51BB #BB9251 #7ABB51
monochromatic
#302969 #443A95 #5D51BB #867DCC #AFA9DD

Accessibility & contrast

On white

6.25
#5D51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5D51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51BB
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51BB#FFFFFF#000000##FFFFFF
##5D51BB1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0564BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#3A697E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5d51bb;
/* rgb */ color: rgb(93, 81, 187);
/* oklch */ color: oklch(50.4% 0.161 284.2);
Tailwind
colors: {
  custom: {
    50: '#9282d0',
    500: '#5d51bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d51bb;
$custom-light: #9282d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51bb",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 246.792,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5041,
    "c": 0.16083,
    "h": 284.2
  },
  "luminance": 0.118
}

Semantic roles & 50–950 ramp

primary
#5D51BB
secondary
#C6CB9D
accent
#D454C5
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5D51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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