#5B51EA#5B51EA

#5B51EA is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.0% C 0.222 H 278.9°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5B51EA
RGBrgb(91, 81, 234)
HSLhsl(244, 78%, 62%)
HSVhsv(244, 65%, 92%)
CMYKcmyk(61.1%, 65.4%, 0%, 8.2%)
CIE-LABlab(44.30, 47.55, -76.03)
CIE-LCHlch(44.30, 89.68, 302.03°)
OKLaboklab(53.98% 0.0341 -0.2191)
OKLCHoklch(53.98% 0.222 278.9)
XYZxyz(22.1033, 14.0478, 79.3727)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B51EA #E0EA51
analogous
#5193EA #5B51EA #A851EA
triadic
#5B51EA #EA5B51 #51EA5B
tetradic
#5B51EA #EA5193 #E0EA51 #51EAA8
square
#5B51EA #EA5193 #E0EA51 #51EAA8
split-complementary
#5B51EA #EAA851 #93EA51
monochromatic
#1F15AC #281BE2 #5B51EA #8E88F1 #C2BEF7

Accessibility & contrast

On white

5.51
#5B51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5B51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B51EA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B51EA#FFFFFF#000000##FFFFFF
##5B51EA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0063E7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b51ea;
/* rgb */ color: rgb(91, 81, 234);
/* oklch */ color: oklch(54.0% 0.222 278.9);
Tailwind
colors: {
  custom: {
    50: '#9883f2',
    500: '#5b51ea',
    950: '#000000',
  },
}
SCSS
$custom: #5b51ea;
$custom-light: #9883f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b51ea",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 243.922,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5398,
    "c": 0.22173,
    "h": 278.9
  },
  "luminance": 0.1405
}

Semantic roles & 50–950 ramp

primary
#5B51EA
secondary
#E4E8AF
accent
#DB0BCD
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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