#5156DA#5156DA

#5156DA is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.8% C 0.198 H 275.6°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5156DA
RGBrgb(81, 86, 218)
HSLhsl(238, 65%, 59%)
HSVhsv(238, 63%, 85%)
CMYKcmyk(62.8%, 60.6%, 0%, 14.5%)
CIE-LABlab(43.46, 37.97, -68.35)
CIE-LCHlch(43.46, 78.19, 299.05°)
OKLaboklab(52.79% 0.0194 -0.1968)
OKLCHoklch(52.79% 0.198 275.6)
XYZxyz(19.3719, 13.4653, 67.8943)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156DA #DAD551
analogous
#519ADA #5156DA #9051DA
triadic
#5156DA #DA5156 #56DA51
tetradic
#5156DA #DA519A #DAD551 #51DA90
square
#5156DA #DA519A #DAD551 #51DA90
split-complementary
#5156DA #DA9051 #9ADA51
monochromatic
#1F2392 #2A2FC4 #5156DA #8387E5 #B6B8EF

Accessibility & contrast

On white

5.69
#5156DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5156DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156DA
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156DA#FFFFFF#000000##FFFFFF
##5156DA1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#0061D7
Tritanopia (blue-blind)
#007790
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5156da;
/* rgb */ color: rgb(81, 86, 218);
/* oklch */ color: oklch(52.8% 0.198 275.6);
Tailwind
colors: {
  custom: {
    50: '#9086e6',
    500: '#5156da',
    950: '#000000',
  },
}
SCSS
$custom: #5156da;
$custom-light: #9086e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5156da",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 218
  },
  "hsl": {
    "h": 237.81,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52789,
    "c": 0.19776,
    "h": 275.6
  },
  "luminance": 0.13467
}

Semantic roles & 50–950 ramp

primary
#5156DA
secondary
#DEDDA8
accent
#E240E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5156DA

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

Preview Lab → · Contrast checker → · Palette generator →

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