#5156DF#5156DF

#5156DF is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.2% C 0.204 H 275.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5156DF
RGBrgb(81, 86, 223)
HSLhsl(238, 69%, 60%)
HSVhsv(238, 64%, 87%)
CMYKcmyk(63.7%, 61.4%, 0%, 12.5%)
CIE-LABlab(43.84, 39.62, -70.57)
CIE-LCHlch(43.84, 80.93, 299.31°)
OKLaboklab(53.2% 0.0192 -0.2033)
OKLCHoklch(53.2% 0.204 275.4)
XYZxyz(20.0360, 13.7309, 71.3922)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156DF #DFDA51
analogous
#519DDF #5156DF #9351DF
triadic
#5156DF #DF5156 #56DF51
tetradic
#5156DF #DF519D #DFDA51 #51DF93
square
#5156DF #DF519D #DFDA51 #51DF93
split-complementary
#5156DF #DF9351 #9DDF51
monochromatic
#1C2199 #262CCD #5156DF #8588E9 #B8BAF2

Accessibility & contrast

On white

5.61
#5156DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5156DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156DF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156DF#FFFFFF#000000##FFFFFF
##5156DF1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#0061DC
Tritanopia (blue-blind)
#007892
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5156df;
/* rgb */ color: rgb(81, 86, 223);
/* oklch */ color: oklch(53.2% 0.204 275.4);
Tailwind
colors: {
  custom: {
    50: '#9186ea',
    500: '#5156df',
    950: '#000000',
  },
}
SCSS
$custom: #5156df;
$custom-light: #9186ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5156df",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 223
  },
  "hsl": {
    "h": 237.887,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53196,
    "c": 0.20422,
    "h": 275.4
  },
  "luminance": 0.13733
}

Semantic roles & 50–950 ramp

primary
#5156DF
secondary
#E1E0AA
accent
#E63CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5156DF

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

Preview Lab → · Contrast checker → · Palette generator →

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