#5156BF#5156BF

#5156BF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.162 H 276.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5156BF
RGBrgb(81, 86, 191)
HSLhsl(237, 46%, 53%)
HSVhsv(237, 58%, 75%)
CMYKcmyk(57.6%, 55%, 0%, 25.1%)
CIE-LABlab(41.48, 29.03, -56.00)
CIE-LCHlch(41.48, 63.07, 297.40°)
OKLaboklab(50.7% 0.0194 -0.1605)
OKLCHoklch(50.7% 0.162 276.9)
XYZxyz(16.1221, 12.1653, 50.7787)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156BF #BFBA51
analogous
#518DBF #5156BF #8351BF
triadic
#5156BF #BF5156 #56BF51
tetradic
#5156BF #BF518D #BFBA51 #51BF83
square
#5156BF #BF518D #BFBA51 #51BF83
split-complementary
#5156BF #BF8351 #8DBF51
monochromatic
#282B6D #393D9A #5156BF #7E81CF #AAADE0

Accessibility & contrast

On white

6.12
#5156BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5156BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156BF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156BF#FFFFFF#000000##FFFFFF
##5156BF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C67C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#0A6E82
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5156bf;
/* rgb */ color: rgb(81, 86, 191);
/* oklch */ color: oklch(50.7% 0.162 276.9);
Tailwind
colors: {
  custom: {
    50: '#8b85d3',
    500: '#5156bf',
    950: '#000000',
  },
}
SCSS
$custom: #5156bf;
$custom-light: #8b85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5156bf",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 237.273,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50699,
    "c": 0.16164,
    "h": 276.9
  },
  "luminance": 0.12166
}

Semantic roles & 50–950 ramp

primary
#5156BF
secondary
#CECB9E
accent
#D052D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5156BF

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

Preview Lab → · Contrast checker → · Palette generator →

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