#5156E2#5156E2

#5156E2 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.4% C 0.208 H 275.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5156E2
RGBrgb(81, 86, 226)
HSLhsl(238, 71%, 60%)
HSVhsv(238, 64%, 89%)
CMYKcmyk(64.2%, 61.9%, 0%, 11.4%)
CIE-LABlab(44.08, 40.61, -71.89)
CIE-LCHlch(44.08, 82.57, 299.46°)
OKLaboklab(53.44% 0.019 -0.2072)
OKLCHoklch(53.44% 0.208 275.2)
XYZxyz(20.4441, 13.8941, 73.5412)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156E2 #E2DD51
analogous
#519EE2 #5156E2 #9451E2
triadic
#5156E2 #E25156 #56E251
tetradic
#5156E2 #E2519E #E2DD51 #51E294
square
#5156E2 #E2519E #E2DD51 #51E294
split-complementary
#5156E2 #E29451 #9EE251
monochromatic
#1A1F9E #2329D3 #5156E2 #8589EB #BABCF3

Accessibility & contrast

On white

5.56
#5156E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5156E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156E2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156E2#FFFFFF#000000##FFFFFF
##5156E21.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#0062DF
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5156e2;
/* rgb */ color: rgb(81, 86, 226);
/* oklch */ color: oklch(53.4% 0.208 275.2);
Tailwind
colors: {
  custom: {
    50: '#9186ec',
    500: '#5156e2',
    950: '#000000',
  },
}
SCSS
$custom: #5156e2;
$custom-light: #9186ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5156e2",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 237.931,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53443,
    "c": 0.20806,
    "h": 275.2
  },
  "luminance": 0.13896
}

Semantic roles & 50–950 ramp

primary
#5156E2
secondary
#E3E1AC
accent
#CD12D3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5156E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5156E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva