#516795#516795

#516795 is a mid, moderate blue. Relative luminance 0.136; OKLCH L 51.6% C 0.078 H 264.3°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#516795
RGBrgb(81, 103, 149)
HSLhsl(221, 30%, 45%)
HSVhsv(221, 46%, 58%)
CMYKcmyk(45.6%, 30.9%, 0%, 41.6%)
CIE-LABlab(43.68, 4.70, -27.73)
CIE-LCHlch(43.68, 28.12, 279.62°)
OKLaboklab(51.6% -0.0078 -0.0776)
OKLCHoklch(51.6% 0.078 264.3)
XYZxyz(13.6667, 13.6190, 30.3365)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516795 #957F51
analogous
#518995 #516795 #5D5195
triadic
#516795 #955167 #679551
tetradic
#516795 #955189 #957F51 #51955D
square
#516795 #955189 #957F51 #51955D
split-complementary
#516795 #955D51 #899551
monochromatic
#263046 #3B4C6D #516795 #7186B2 #99A8C7

Accessibility & contrast

On white

5.64
#516795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#516795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516795
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516795#FFFFFF#000000##FFFFFF
##5167951.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566B97
Deuteranopia (green-blind)
#4F6494
Tritanopia (blue-blind)
#387177
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #516795;
/* rgb */ color: rgb(81, 103, 149);
/* oklch */ color: oklch(51.6% 0.078 264.3);
Tailwind
colors: {
  custom: {
    50: '#8592b4',
    500: '#516795',
    950: '#000000',
  },
}
SCSS
$custom: #516795;
$custom-light: #8592b4;
$custom-dark: #000000;
JSON
{
  "hex": "#516795",
  "rgb": {
    "r": 81,
    "g": 103,
    "b": 149
  },
  "hsl": {
    "h": 220.588,
    "s": 29.565,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51598,
    "c": 0.07802,
    "h": 264.3
  },
  "luminance": 0.1362
}

Semantic roles & 50–950 ramp

primary
#516795
secondary
#B4A88D
accent
#A662C6
background
#F8F8FB
surface
#EFF0F6
border
#CACBD0
text
#0B0C11
muted
#7C7D80

Preview Lab

Preview with #516795

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

Preview Lab → · Contrast checker → · Palette generator →

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