#516CA7#516CA7

#516CA7 is a mid, moderate blue. Relative luminance 0.153; OKLCH L 53.7% C 0.098 H 264.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#516CA7
RGBrgb(81, 108, 167)
HSLhsl(221, 35%, 49%)
HSVhsv(221, 51%, 65%)
CMYKcmyk(51.5%, 35.3%, 0%, 34.5%)
CIE-LABlab(45.99, 7.30, -34.75)
CIE-LCHlch(45.99, 35.51, 281.86°)
OKLaboklab(53.68% -0.0092 -0.098)
OKLCHoklch(53.68% 0.098 264.6)
XYZxyz(15.7286, 15.2634, 38.6690)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516CA7 #A78C51
analogous
#5197A7 #516CA7 #6151A7
triadic
#516CA7 #A7516C #6CA751
tetradic
#516CA7 #A75197 #A78C51 #51A761
square
#516CA7 #A75197 #A78C51 #51A761
split-complementary
#516CA7 #A76151 #97A751
monochromatic
#293755 #3D517E #516CA7 #788EBD #A1B0D1

Accessibility & contrast

On white

5.18
#516CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#516CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516CA7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516CA7#FFFFFF#000000##FFFFFF
##516CA71.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5571A9
Deuteranopia (green-blind)
#4B69A6
Tritanopia (blue-blind)
#2A7982
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #516ca7;
/* rgb */ color: rgb(81, 108, 167);
/* oklch */ color: oklch(53.7% 0.098 264.6);
Tailwind
colors: {
  custom: {
    50: '#8795c1',
    500: '#516ca7',
    950: '#000000',
  },
}
SCSS
$custom: #516ca7;
$custom-light: #8795c1;
$custom-dark: #000000;
JSON
{
  "hex": "#516ca7",
  "rgb": {
    "r": 81,
    "g": 108,
    "b": 167
  },
  "hsl": {
    "h": 221.163,
    "s": 34.677,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5368,
    "c": 0.0984,
    "h": 264.6
  },
  "luminance": 0.15264
}

Semantic roles & 50–950 ramp

primary
#516CA7
secondary
#BFB295
accent
#A85DCB
background
#F8F9FB
surface
#F0F1F7
border
#CBCBD0
text
#0C0D12
muted
#7D7E81

Preview Lab

Preview with #516CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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