#5156BA#5156BA

#5156BA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.155 H 277.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5156BA
RGBrgb(81, 86, 186)
HSLhsl(237, 43%, 52%)
HSVhsv(237, 56%, 73%)
CMYKcmyk(56.5%, 53.8%, 0%, 27.1%)
CIE-LABlab(41.13, 27.38, -53.63)
CIE-LCHlch(41.13, 60.22, 297.04°)
OKLaboklab(50.33% 0.0192 -0.1535)
OKLCHoklch(50.33% 0.155 277.1)
XYZxyz(15.5812, 11.9490, 47.9302)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156BA #BAB551
analogous
#518ABA #5156BA #8151BA
triadic
#5156BA #BA5156 #56BA51
tetradic
#5156BA #BA518A #BAB551 #51BA81
square
#5156BA #BA518A #BAB551 #51BA81
split-complementary
#5156BA #BA8151 #8ABA51
monochromatic
#292C68 #3A3F93 #5156BA #7D81CB #A9ABDD

Accessibility & contrast

On white

6.19
#5156BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5156BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156BA
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156BA#FFFFFF#000000##FFFFFF
##5156BA1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1965BD
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#176D7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5156ba;
/* rgb */ color: rgb(81, 86, 186);
/* oklch */ color: oklch(50.3% 0.155 277.1);
Tailwind
colors: {
  custom: {
    50: '#8b85cf',
    500: '#5156ba',
    950: '#000000',
  },
}
SCSS
$custom: #5156ba;
$custom-light: #8b85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5156ba",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 237.143,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50333,
    "c": 0.15471,
    "h": 277.1
  },
  "luminance": 0.1195
}

Semantic roles & 50–950 ramp

primary
#5156BA
secondary
#CAC89D
accent
#CD55D3
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82

Preview Lab

Preview with #5156BA

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

Preview Lab → · Contrast checker → · Palette generator →

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