#516DD4#516DD4

#516DD4 is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.7% C 0.161 H 269.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#516DD4
RGBrgb(81, 109, 212)
HSLhsl(227, 60%, 57%)
HSVhsv(227, 62%, 83%)
CMYKcmyk(61.8%, 48.6%, 0%, 16.9%)
CIE-LABlab(48.81, 21.68, -56.27)
CIE-LCHlch(48.81, 60.31, 291.07°)
OKLaboklab(56.67% -0.002 -0.161)
OKLCHoklch(56.67% 0.161 269.3)
XYZxyz(20.7416, 17.4383, 64.5475)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516DD4 #D4B851
analogous
#51AED4 #516DD4 #7751D4
triadic
#516DD4 #D4516D #6DD451
tetradic
#516DD4 #D451AE #D4B851 #51D477
square
#516DD4 #D451AE #D4B851 #51D477
split-complementary
#516DD4 #D47751 #AED451
monochromatic
#223889 #2E4CBA #516DD4 #8296E0 #B3BFEC

Accessibility & contrast

On white

4.68
#516DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#516DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516DD4
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516DD4#FFFFFF#000000##FFFFFF
##516DD41.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#377AD8
Deuteranopia (green-blind)
#1C6ED2
Tritanopia (blue-blind)
#008596
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #516dd4;
/* rgb */ color: rgb(81, 109, 212);
/* oklch */ color: oklch(56.7% 0.161 269.3);
Tailwind
colors: {
  custom: {
    50: '#8e96e2',
    500: '#516dd4',
    950: '#000000',
  },
}
SCSS
$custom: #516dd4;
$custom-light: #8e96e2;
$custom-dark: #000000;
JSON
{
  "hex": "#516dd4",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 212
  },
  "hsl": {
    "h": 227.176,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56665,
    "c": 0.16104,
    "h": 269.3
  },
  "luminance": 0.1744
}

Semantic roles & 50–950 ramp

primary
#516DD4
secondary
#DBD0A6
accent
#C144E4
background
#F9F9FD
surface
#F2F1FB
border
#CCCBD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #516DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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