#516DD5#516DD5

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

Color values

HEX#516DD5
RGBrgb(81, 109, 213)
HSLhsl(227, 61%, 58%)
HSVhsv(227, 62%, 84%)
CMYKcmyk(62%, 48.8%, 0%, 16.5%)
CIE-LABlab(48.87, 22.02, -56.74)
CIE-LCHlch(48.87, 60.87, 291.21°)
OKLaboklab(56.73% -0.0019 -0.1624)
OKLCHoklch(56.73% 0.162 269.3)
XYZxyz(20.8682, 17.4889, 65.2139)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516DD5 #D5B951
analogous
#51AFD5 #516DD5 #7751D5
triadic
#516DD5 #D5516D #6DD551
tetradic
#516DD5 #D551AF #D5B951 #51D577
square
#516DD5 #D551AF #D5B951 #51D577
split-complementary
#516DD5 #D57751 #AFD551
monochromatic
#21388A #2D4BBC #516DD5 #8296E1 #B4C0ED

Accessibility & contrast

On white

4.67
#516DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#516DD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #516DD5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516DD5#FFFFFF#000000##FFFFFF
##516DD51.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#367AD9
Deuteranopia (green-blind)
#1A6ED3
Tritanopia (blue-blind)
#008597
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #516dd5;
/* rgb */ color: rgb(81, 109, 213);
/* oklch */ color: oklch(56.7% 0.162 269.3);
Tailwind
colors: {
  custom: {
    50: '#8e96e2',
    500: '#516dd5',
    950: '#000000',
  },
}
SCSS
$custom: #516dd5;
$custom-light: #8e96e2;
$custom-dark: #000000;
JSON
{
  "hex": "#516dd5",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 213
  },
  "hsl": {
    "h": 227.273,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56732,
    "c": 0.16242,
    "h": 269.3
  },
  "luminance": 0.17491
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #516DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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