#516798#516798

#516798 is a mid, moderate blue. Relative luminance 0.137; OKLCH L 51.8% C 0.082 H 265.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#516798
RGBrgb(81, 103, 152)
HSLhsl(221, 30%, 46%)
HSVhsv(221, 47%, 60%)
CMYKcmyk(46.7%, 32.2%, 0%, 40.4%)
CIE-LABlab(43.82, 5.63, -29.29)
CIE-LCHlch(43.82, 29.83, 280.88°)
OKLaboklab(51.75% -0.0069 -0.0822)
OKLCHoklch(51.75% 0.082 265.2)
XYZxyz(13.9093, 13.7160, 31.6142)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516798 #988251
analogous
#518A98 #516798 #5E5198
triadic
#516798 #985167 #679851
tetradic
#516798 #98518A #988251 #51985E
square
#516798 #98518A #988251 #51985E
split-complementary
#516798 #985E51 #8A9851
monochromatic
#263148 #3C4C70 #516798 #7287B4 #9AA9C9

Accessibility & contrast

On white

5.61
#516798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#516798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516798
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516798#FFFFFF#000000##FFFFFF
##5167981.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556B9A
Deuteranopia (green-blind)
#4E6597
Tritanopia (blue-blind)
#367179
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #516798;
/* rgb */ color: rgb(81, 103, 152);
/* oklch */ color: oklch(51.8% 0.082 265.2);
Tailwind
colors: {
  custom: {
    50: '#8592b6',
    500: '#516798',
    950: '#000000',
  },
}
SCSS
$custom: #516798;
$custom-light: #8592b6;
$custom-dark: #000000;
JSON
{
  "hex": "#516798",
  "rgb": {
    "r": 81,
    "g": 103,
    "b": 152
  },
  "hsl": {
    "h": 221.408,
    "s": 30.472,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51754,
    "c": 0.08245,
    "h": 265.2
  },
  "luminance": 0.13717
}

Semantic roles & 50–950 ramp

primary
#516798
secondary
#B6AA8F
accent
#A761C7
background
#F8F8FB
surface
#EFF0F6
border
#CACBD0
text
#0B0C11
muted
#7C7D80

Preview Lab

Preview with #516798

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

Preview Lab → · Contrast checker → · Palette generator →

#516798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva