#516FD7#516FD7

#516FD7 is a mid, vivid blue. Relative luminance 0.180; OKLCH L 57.3% C 0.163 H 268.7°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#516FD7
RGBrgb(81, 111, 215)
HSLhsl(227, 63%, 58%)
HSVhsv(227, 62%, 84%)
CMYKcmyk(62.3%, 48.4%, 0%, 15.7%)
CIE-LABlab(49.52, 21.46, -56.83)
CIE-LCHlch(49.52, 60.75, 290.69°)
OKLaboklab(57.27% -0.0036 -0.1626)
OKLCHoklch(57.27% 0.163 268.7)
XYZxyz(21.3394, 18.0226, 66.6310)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516FD7 #D7B951
analogous
#51B2D7 #516FD7 #7651D7
triadic
#516FD7 #D7516F #6FD751
tetradic
#516FD7 #D751B2 #D7B951 #51D776
square
#516FD7 #D751B2 #D7B951 #51D776
split-complementary
#516FD7 #D77651 #B2D751
monochromatic
#20398D #2C4DBF #516FD7 #8398E2 #B5C1EE

Accessibility & contrast

On white

4.56
#516FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#516FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #516FD7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516FD7#FFFFFF#000000##000000
##516FD71.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#397CDB
Deuteranopia (green-blind)
#1D70D5
Tritanopia (blue-blind)
#008799
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #516fd7;
/* rgb */ color: rgb(81, 111, 215);
/* oklch */ color: oklch(57.3% 0.163 268.7);
Tailwind
colors: {
  custom: {
    50: '#8e97e4',
    500: '#516fd7',
    950: '#000000',
  },
}
SCSS
$custom: #516fd7;
$custom-light: #8e97e4;
$custom-dark: #000000;
JSON
{
  "hex": "#516fd7",
  "rgb": {
    "r": 81,
    "g": 111,
    "b": 215
  },
  "hsl": {
    "h": 226.567,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57269,
    "c": 0.16267,
    "h": 268.7
  },
  "luminance": 0.18025
}

Semantic roles & 50–950 ramp

primary
#516FD7
secondary
#DDD1A7
accent
#C142E6
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #516FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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