#516BD7#516BD7

#516BD7 is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.5% C 0.168 H 270.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#516BD7
RGBrgb(81, 107, 215)
HSLhsl(228, 63%, 58%)
HSVhsv(228, 62%, 84%)
CMYKcmyk(62.3%, 50.2%, 0%, 15.7%)
CIE-LABlab(48.47, 23.95, -58.52)
CIE-LCHlch(48.47, 63.23, 292.26°)
OKLaboklab(56.47% 0.0003 -0.1677)
OKLCHoklch(56.47% 0.168 270.1)
XYZxyz(20.9126, 17.1692, 66.4887)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516BD7 #D7BD51
analogous
#51AED7 #516BD7 #7A51D7
triadic
#516BD7 #D7516B #6BD751
tetradic
#516BD7 #D751AE #D7BD51 #51D77A
square
#516BD7 #D751AE #D7BD51 #51D77A
split-complementary
#516BD7 #D77A51 #AED751
monochromatic
#20368D #2C48BF #516BD7 #8395E2 #B5C0EE

Accessibility & contrast

On white

4.74
#516BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#516BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516BD7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516BD7#FFFFFF#000000##FFFFFF
##516BD71.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F79DB
Deuteranopia (green-blind)
#066DD5
Tritanopia (blue-blind)
#008497
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #516bd7;
/* rgb */ color: rgb(81, 107, 215);
/* oklch */ color: oklch(56.5% 0.168 270.1);
Tailwind
colors: {
  custom: {
    50: '#8e95e4',
    500: '#516bd7',
    950: '#000000',
  },
}
SCSS
$custom: #516bd7;
$custom-light: #8e95e4;
$custom-dark: #000000;
JSON
{
  "hex": "#516bd7",
  "rgb": {
    "r": 81,
    "g": 107,
    "b": 215
  },
  "hsl": {
    "h": 228.358,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56471,
    "c": 0.16766,
    "h": 270.1
  },
  "luminance": 0.17171
}

Semantic roles & 50–950 ramp

primary
#516BD7
secondary
#DDD2A7
accent
#C642E6
background
#F9F9FE
surface
#F2F1FC
border
#CCCBD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #516BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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