#516DB2#516DB2

#516DB2 is a mid, moderate blue. Relative luminance 0.159; OKLCH L 54.5% C 0.113 H 266.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#516DB2
RGBrgb(81, 109, 178)
HSLhsl(223, 39%, 51%)
HSVhsv(223, 54%, 70%)
CMYKcmyk(54.5%, 38.8%, 0%, 30.2%)
CIE-LABlab(46.84, 10.26, -39.84)
CIE-LCHlch(46.84, 41.14, 284.44°)
OKLaboklab(54.52% -0.0078 -0.1128)
OKLCHoklch(54.52% 0.113 266.1)
XYZxyz(16.8952, 15.8997, 44.2895)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516DB2 #B29651
analogous
#519DB2 #516DB2 #6551B2
triadic
#516DB2 #B2516D #6DB251
tetradic
#516DB2 #B2519D #B29651 #51B265
square
#516DB2 #B2519D #B29651 #51B265
split-complementary
#516DB2 #B26551 #9DB251
monochromatic
#2A395F #3D5389 #516DB2 #7B91C5 #A6B4D8

Accessibility & contrast

On white

5.02
#516DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#516DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516DB2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516DB2#FFFFFF#000000##FFFFFF
##516DB21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5174B5
Deuteranopia (green-blind)
#456BB1
Tritanopia (blue-blind)
#1D7C87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #516db2;
/* rgb */ color: rgb(81, 109, 178);
/* oklch */ color: oklch(54.5% 0.113 266.1);
Tailwind
colors: {
  custom: {
    50: '#8896c9',
    500: '#516db2',
    950: '#000000',
  },
}
SCSS
$custom: #516db2;
$custom-light: #8896c9;
$custom-dark: #000000;
JSON
{
  "hex": "#516db2",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 178
  },
  "hsl": {
    "h": 222.68,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54523,
    "c": 0.11307,
    "h": 266.1
  },
  "luminance": 0.15901
}

Semantic roles & 50–950 ramp

primary
#516DB2
secondary
#C5B99A
accent
#AD59CF
background
#F8F9FC
surface
#F0F1F8
border
#CBCBD1
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #516DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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