#516CD5#516CD5

#516CD5 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.5% C 0.164 H 269.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#516CD5
RGBrgb(81, 108, 213)
HSLhsl(228, 61%, 58%)
HSVhsv(228, 62%, 84%)
CMYKcmyk(62%, 49.3%, 0%, 16.5%)
CIE-LABlab(48.61, 22.65, -57.16)
CIE-LCHlch(48.61, 61.49, 291.61°)
OKLaboklab(56.53% -0.0009 -0.1637)
OKLCHoklch(56.53% 0.164 269.7)
XYZxyz(20.7621, 17.2768, 65.1785)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516CD5 #D5BA51
analogous
#51AED5 #516CD5 #7851D5
triadic
#516CD5 #D5516C #6CD551
tetradic
#516CD5 #D551AE #D5BA51 #51D578
square
#516CD5 #D551AE #D5BA51 #51D578
split-complementary
#516CD5 #D57851 #AED551
monochromatic
#21378A #2D4ABC #516CD5 #8296E1 #B4BFED

Accessibility & contrast

On white

4.71
#516CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#516CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516CD5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516CD5#FFFFFF#000000##FFFFFF
##516CD51.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#347AD9
Deuteranopia (green-blind)
#156ED3
Tritanopia (blue-blind)
#008496
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #516cd5;
/* rgb */ color: rgb(81, 108, 213);
/* oklch */ color: oklch(56.5% 0.164 269.7);
Tailwind
colors: {
  custom: {
    50: '#8e95e2',
    500: '#516cd5',
    950: '#000000',
  },
}
SCSS
$custom: #516cd5;
$custom-light: #8e95e2;
$custom-dark: #000000;
JSON
{
  "hex": "#516cd5",
  "rgb": {
    "r": 81,
    "g": 108,
    "b": 213
  },
  "hsl": {
    "h": 227.727,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56532,
    "c": 0.16366,
    "h": 269.7
  },
  "luminance": 0.17279
}

Semantic roles & 50–950 ramp

primary
#516CD5
secondary
#DBD1A6
accent
#C344E4
background
#F9F9FD
surface
#F2F1FB
border
#CCCBD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #516CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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