#5B51DA#5B51DA

#5B51DA is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.6% C 0.202 H 280.2°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5B51DA
RGBrgb(91, 81, 218)
HSLhsl(244, 65%, 59%)
HSVhsv(244, 63%, 85%)
CMYKcmyk(58.3%, 62.8%, 0%, 14.5%)
CIE-LABlab(43.02, 42.55, -69.04)
CIE-LCHlch(43.02, 81.10, 301.65°)
OKLaboklab(52.65% 0.0356 -0.1986)
OKLCHoklch(52.65% 0.202 280.2)
XYZxyz(19.9077, 13.1696, 67.8090)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B51DA #D0DA51
analogous
#518BDA #5B51DA #9F51DA
triadic
#5B51DA #DA5B51 #51DA5B
tetradic
#5B51DA #DA518B #D0DA51 #51DA9F
square
#5B51DA #DA518B #D0DA51 #51DA9F
split-complementary
#5B51DA #DA9F51 #8BDA51
monochromatic
#271F92 #352AC4 #5B51DA #8B83E5 #BAB6EF

Accessibility & contrast

On white

5.78
#5B51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5B51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B51DA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B51DA#FFFFFF#000000##FFFFFF
##5B51DA1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDE
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#00738E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b51da;
/* rgb */ color: rgb(91, 81, 218);
/* oklch */ color: oklch(52.6% 0.202 280.2);
Tailwind
colors: {
  custom: {
    50: '#9582e6',
    500: '#5b51da',
    950: '#000000',
  },
}
SCSS
$custom: #5b51da;
$custom-light: #9582e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b51da",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 244.38,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52648,
    "c": 0.20175,
    "h": 280.2
  },
  "luminance": 0.13171
}

Semantic roles & 50–950 ramp

primary
#5B51DA
secondary
#DBDEA8
accent
#E840DC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5B51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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