#5156DD#5156DD

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

Color values

HEX#5156DD
RGBrgb(81, 86, 221)
HSLhsl(238, 67%, 59%)
HSVhsv(238, 63%, 87%)
CMYKcmyk(63.3%, 61.1%, 0%, 13.3%)
CIE-LABlab(43.69, 38.96, -69.69)
CIE-LCHlch(43.69, 79.84, 299.21°)
OKLaboklab(53.03% 0.0193 -0.2007)
OKLCHoklch(53.03% 0.202 275.5)
XYZxyz(19.7680, 13.6237, 69.9805)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156DD #DDD851
analogous
#519CDD #5156DD #9251DD
triadic
#5156DD #DD5156 #56DD51
tetradic
#5156DD #DD519C #DDD851 #51DD92
square
#5156DD #DD519C #DDD851 #51DD92
split-complementary
#5156DD #DD9251 #9CDD51
monochromatic
#1D2296 #272DC9 #5156DD #8488E7 #B7B9F1

Accessibility & contrast

On white

5.64
#5156DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5156DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156DD
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156DD#FFFFFF#000000##FFFFFF
##5156DD1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE1
Deuteranopia (green-blind)
#0061DA
Tritanopia (blue-blind)
#007891
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5156dd;
/* rgb */ color: rgb(81, 86, 221);
/* oklch */ color: oklch(53.0% 0.202 275.5);
Tailwind
colors: {
  custom: {
    50: '#9186e9',
    500: '#5156dd',
    950: '#000000',
  },
}
SCSS
$custom: #5156dd;
$custom-light: #9186e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5156dd",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 221
  },
  "hsl": {
    "h": 237.857,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53033,
    "c": 0.20164,
    "h": 275.5
  },
  "luminance": 0.13625
}

Semantic roles & 50–950 ramp

primary
#5156DD
secondary
#E0DEAA
accent
#E43EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5156DD

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

Preview Lab → · Contrast checker → · Palette generator →

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