#5B51DC#5B51DC

#5B51DC is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.8% C 0.204 H 280.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5B51DC
RGBrgb(91, 81, 220)
HSLhsl(244, 67%, 59%)
HSVhsv(244, 63%, 86%)
CMYKcmyk(58.6%, 63.2%, 0%, 13.7%)
CIE-LABlab(43.17, 43.18, -69.93)
CIE-LCHlch(43.17, 82.18, 301.69°)
OKLaboklab(52.81% 0.0355 -0.2012)
OKLCHoklch(52.81% 0.204 280)
XYZxyz(20.1710, 13.2749, 69.1957)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B51DC #D2DC51
analogous
#518DDC #5B51DC #A151DC
triadic
#5B51DC #DC5B51 #51DC5B
tetradic
#5B51DC #DC518D #D2DC51 #51DCA1
square
#5B51DC #DC518D #D2DC51 #51DCA1
split-complementary
#5B51DC #DCA151 #8DDC51
monochromatic
#261E95 #3428C8 #5B51DC #8B84E6 #BBB7F0

Accessibility & contrast

On white

5.75
#5B51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5B51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B51DC
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B51DC#FFFFFF#000000##FFFFFF
##5B51DC1.005.753.665.75
#FFFFFF5.751.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b51dc;
/* rgb */ color: rgb(91, 81, 220);
/* oklch */ color: oklch(52.8% 0.204 280.0);
Tailwind
colors: {
  custom: {
    50: '#9682e8',
    500: '#5b51dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b51dc;
$custom-light: #9682e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b51dc",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 244.317,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52812,
    "c": 0.20428,
    "h": 280
  },
  "luminance": 0.13276
}

Semantic roles & 50–950 ramp

primary
#5B51DC
secondary
#DCE0A9
accent
#E93EDD
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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