#5156DC#5156DC

#5156DC is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.0% C 0.200 H 275.5°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5156DC
RGBrgb(81, 86, 220)
HSLhsl(238, 67%, 59%)
HSVhsv(238, 63%, 86%)
CMYKcmyk(63.2%, 60.9%, 0%, 13.7%)
CIE-LABlab(43.61, 38.63, -69.24)
CIE-LCHlch(43.61, 79.29, 299.16°)
OKLaboklab(52.95% 0.0193 -0.1994)
OKLCHoklch(52.95% 0.2 275.5)
XYZxyz(19.6352, 13.5706, 69.2809)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156DC #DCD751
analogous
#519CDC #5156DC #9251DC
triadic
#5156DC #DC5156 #56DC51
tetradic
#5156DC #DC519C #DCD751 #51DC92
square
#5156DC #DC519C #DCD751 #51DC92
split-complementary
#5156DC #DC9251 #9CDC51
monochromatic
#1E2295 #282EC8 #5156DC #8487E6 #B7B9F0

Accessibility & contrast

On white

5.65
#5156DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5156DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156DC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156DC#FFFFFF#000000##FFFFFF
##5156DC1.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5156dc;
/* rgb */ color: rgb(81, 86, 220);
/* oklch */ color: oklch(53.0% 0.200 275.5);
Tailwind
colors: {
  custom: {
    50: '#9086e8',
    500: '#5156dc',
    950: '#000000',
  },
}
SCSS
$custom: #5156dc;
$custom-light: #9086e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5156dc",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 237.842,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52951,
    "c": 0.20035,
    "h": 275.5
  },
  "luminance": 0.13572
}

Semantic roles & 50–950 ramp

primary
#5156DC
secondary
#E0DEA9
accent
#E33EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5156DC

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

Preview Lab → · Contrast checker → · Palette generator →

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