#5D51CB#5D51CB

#5D51CB is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.182 H 282.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5D51CB
RGBrgb(93, 81, 203)
HSLhsl(246, 54%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(54.2%, 60.1%, 0%, 20.4%)
CIE-LABlab(42.04, 38.21, -62.01)
CIE-LCHlch(42.04, 72.84, 301.64°)
OKLaboklab(51.61% 0.0391 -0.1779)
OKLCHoklch(51.61% 0.182 282.4)
XYZxyz(18.2328, 12.5227, 57.9447)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51CB #BFCB51
analogous
#5182CB #5D51CB #9A51CB
triadic
#5D51CB #CB5D51 #51CB5D
tetradic
#5D51CB #CB5182 #BFCB51 #51CB9A
square
#5D51CB #CB5182 #BFCB51 #51CB9A
split-complementary
#5D51CB #CB9A51 #82CB51
monochromatic
#2E257C #3F33AC #5D51CB #8980D9 #B5AFE7

Accessibility & contrast

On white

5.99
#5D51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5D51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51CB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51CB#FFFFFF#000000##FFFFFF
##5D51CB1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#2B6E86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5d51cb;
/* rgb */ color: rgb(93, 81, 203);
/* oklch */ color: oklch(51.6% 0.182 282.4);
Tailwind
colors: {
  custom: {
    50: '#9482dc',
    500: '#5d51cb',
    950: '#000000',
  },
}
SCSS
$custom: #5d51cb;
$custom-light: #9482dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51cb",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 245.902,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.18211,
    "h": 282.4
  },
  "luminance": 0.12524
}

Semantic roles & 50–950 ramp

primary
#5D51CB
secondary
#D0D5A3
accent
#DD4ACF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5D51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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