#5156BD#5156BD

#5156BD is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.159 H 277.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5156BD
RGBrgb(81, 86, 189)
HSLhsl(237, 45%, 53%)
HSVhsv(237, 57%, 74%)
CMYKcmyk(57.1%, 54.5%, 0%, 25.9%)
CIE-LABlab(41.34, 28.37, -55.05)
CIE-LCHlch(41.34, 61.93, 297.26°)
OKLaboklab(50.55% 0.0194 -0.1577)
OKLCHoklch(50.55% 0.159 277)
XYZxyz(15.9035, 12.0779, 49.6275)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156BD #BDB851
analogous
#518CBD #5156BD #8251BD
triadic
#5156BD #BD5156 #56BD51
tetradic
#5156BD #BD518C #BDB851 #51BD82
square
#5156BD #BD518C #BDB851 #51BD82
split-complementary
#5156BD #BD8251 #8CBD51
monochromatic
#292C6B #393E97 #5156BD #7D81CE #AAACDF

Accessibility & contrast

On white

6.15
#5156BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5156BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156BD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156BD#FFFFFF#000000##FFFFFF
##5156BD1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1266C1
Deuteranopia (green-blind)
#005DBB
Tritanopia (blue-blind)
#106E81
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5156bd;
/* rgb */ color: rgb(81, 86, 189);
/* oklch */ color: oklch(50.6% 0.159 277.0);
Tailwind
colors: {
  custom: {
    50: '#8b85d2',
    500: '#5156bd',
    950: '#000000',
  },
}
SCSS
$custom: #5156bd;
$custom-light: #8b85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5156bd",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 189
  },
  "hsl": {
    "h": 237.222,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50551,
    "c": 0.15888,
    "h": 277
  },
  "luminance": 0.12079
}

Semantic roles & 50–950 ramp

primary
#5156BD
secondary
#CCCA9E
accent
#CF53D5
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5156BD

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

Preview Lab → · Contrast checker → · Palette generator →

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