#5E51BE#5E51BE

#5E51BE is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.7% C 0.165 H 284.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5E51BE
RGBrgb(94, 81, 190)
HSLhsl(247, 46%, 53%)
HSVhsv(247, 57%, 75%)
CMYKcmyk(50.5%, 57.4%, 0%, 25.5%)
CIE-LABlab(41.19, 34.39, -55.84)
CIE-LCHlch(41.19, 65.58, 301.63°)
OKLaboklab(50.71% 0.0406 -0.1597)
OKLCHoklch(50.71% 0.165 284.3)
XYZxyz(16.8500, 11.9814, 50.1300)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51BE #B1BE51
analogous
#517ABE #5E51BE #9451BE
triadic
#5E51BE #BE5E51 #51BE5E
tetradic
#5E51BE #BE517A #B1BE51 #51BE94
square
#5E51BE #BE517A #B1BE51 #51BE94
split-complementary
#5E51BE #BE9451 #7ABE51
monochromatic
#30286C #443999 #5E51BE #877ECF #B0AADF

Accessibility & contrast

On white

6.18
#5E51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5E51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51BE
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51BE#FFFFFF#000000##FFFFFF
##5E51BE1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#3A6A7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5e51be;
/* rgb */ color: rgb(94, 81, 190);
/* oklch */ color: oklch(50.7% 0.165 284.3);
Tailwind
colors: {
  custom: {
    50: '#9382d2',
    500: '#5e51be',
    950: '#000000',
  },
}
SCSS
$custom: #5e51be;
$custom-light: #9382d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51be",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 247.156,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50712,
    "c": 0.16476,
    "h": 284.3
  },
  "luminance": 0.11982
}

Semantic roles & 50–950 ramp

primary
#5E51BE
secondary
#C7CD9E
accent
#D553C6
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5E51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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