#516DD8#516DD8

#516DD8 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.9% C 0.167 H 269.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#516DD8
RGBrgb(81, 109, 216)
HSLhsl(228, 63%, 58%)
HSVhsv(228, 63%, 85%)
CMYKcmyk(62.5%, 49.5%, 0%, 15.3%)
CIE-LABlab(49.06, 23.05, -58.14)
CIE-LCHlch(49.06, 62.54, 291.62°)
OKLaboklab(56.94% -0.0015 -0.1665)
OKLCHoklch(56.94% 0.167 269.5)
XYZxyz(21.2525, 17.6426, 67.2378)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516DD8 #D8BC51
analogous
#51B0D8 #516DD8 #7951D8
triadic
#516DD8 #D8516D #6DD851
tetradic
#516DD8 #D851B0 #D8BC51 #51D879
square
#516DD8 #D851B0 #D8BC51 #51D879
split-complementary
#516DD8 #D87951 #B0D851
monochromatic
#20378F #2B4AC1 #516DD8 #8397E3 #B5C1EE

Accessibility & contrast

On white

4.64
#516DD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#516DD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #516DD8
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516DD8#FFFFFF#000000##FFFFFF
##516DD81.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#337BDC
Deuteranopia (green-blind)
#106FD6
Tritanopia (blue-blind)
#008698
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #516dd8;
/* rgb */ color: rgb(81, 109, 216);
/* oklch */ color: oklch(56.9% 0.167 269.5);
Tailwind
colors: {
  custom: {
    50: '#8e96e5',
    500: '#516dd8',
    950: '#000000',
  },
}
SCSS
$custom: #516dd8;
$custom-light: #8e96e5;
$custom-dark: #000000;
JSON
{
  "hex": "#516dd8",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 216
  },
  "hsl": {
    "h": 227.556,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56937,
    "c": 0.16653,
    "h": 269.5
  },
  "luminance": 0.17644
}

Semantic roles & 50–950 ramp

primary
#516DD8
secondary
#DDD2A8
accent
#C441E6
background
#F9F9FE
surface
#F2F1FC
border
#CCCBD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #516DD8

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

Preview Lab → · Contrast checker → · Palette generator →

#516DD8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva