#5B51CD#5B51CD

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

Color values

HEX#5B51CD
RGBrgb(91, 81, 205)
HSLhsl(245, 55%, 56%)
HSVhsv(245, 60%, 80%)
CMYKcmyk(55.6%, 60.5%, 0%, 19.6%)
CIE-LABlab(42.02, 38.47, -63.19)
CIE-LCHlch(42.02, 73.98, 301.33°)
OKLaboklab(51.61% 0.0365 -0.1814)
OKLCHoklch(51.61% 0.185 281.4)
XYZxyz(18.2728, 12.5156, 59.1987)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B51CD #C3CD51
analogous
#5185CD #5B51CD #9951CD
triadic
#5B51CD #CD5B51 #51CD5B
tetradic
#5B51CD #CD5185 #C3CD51 #51CD99
square
#5B51CD #CD5185 #C3CD51 #51CD99
split-complementary
#5B51CD #CD9951 #85CD51
monochromatic
#2C257F #3C32AF #5B51CD #8881DB #B5B0E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B51CD#FFFFFF#000000##FFFFFF
##5B51CD1.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)
#0068D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#226F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b51cd;
/* rgb */ color: rgb(91, 81, 205);
/* oklch */ color: oklch(51.6% 0.185 281.4);
Tailwind
colors: {
  custom: {
    50: '#9382dd',
    500: '#5b51cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b51cd;
$custom-light: #9382dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b51cd",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 244.839,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5161,
    "c": 0.18503,
    "h": 281.4
  },
  "luminance": 0.12517
}

Semantic roles & 50–950 ramp

primary
#5B51CD
secondary
#D2D7A3
accent
#DF49D3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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