#5D51BE#5D51BE

#5D51BE is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.165 H 283.8°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5D51BE
RGBrgb(93, 81, 190)
HSLhsl(247, 46%, 53%)
HSVhsv(247, 57%, 75%)
CMYKcmyk(51.1%, 57.4%, 0%, 25.5%)
CIE-LABlab(41.10, 34.18, -55.98)
CIE-LCHlch(41.10, 65.59, 301.41°)
OKLaboklab(50.63% 0.0394 -0.1601)
OKLCHoklch(50.63% 0.165 283.8)
XYZxyz(16.7481, 11.9288, 50.1252)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51BE #B2BE51
analogous
#517BBE #5D51BE #9451BE
triadic
#5D51BE #BE5D51 #51BE5D
tetradic
#5D51BE #BE517B #B2BE51 #51BE94
square
#5D51BE #BE517B #B2BE51 #51BE94
split-complementary
#5D51BE #BE9451 #7BBE51
monochromatic
#30286C #443999 #5D51BE #867ECF #B0AADF

Accessibility & contrast

On white

6.20
#5D51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5D51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51BE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51BE#FFFFFF#000000##FFFFFF
##5D51BE1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#386A7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5d51be;
/* rgb */ color: rgb(93, 81, 190);
/* oklch */ color: oklch(50.6% 0.165 283.8);
Tailwind
colors: {
  custom: {
    50: '#9282d2',
    500: '#5d51be',
    950: '#000000',
  },
}
SCSS
$custom: #5d51be;
$custom-light: #9282d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51be",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 246.606,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5063,
    "c": 0.16487,
    "h": 283.8
  },
  "luminance": 0.1193
}

Semantic roles & 50–950 ramp

primary
#5D51BE
secondary
#C8CD9E
accent
#D553C7
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5D51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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