#516CB2#516CB2

#516CB2 is a mid, moderate blue. Relative luminance 0.157; OKLCH L 54.3% C 0.114 H 266.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#516CB2
RGBrgb(81, 108, 178)
HSLhsl(223, 39%, 51%)
HSVhsv(223, 54%, 70%)
CMYKcmyk(54.5%, 39.3%, 0%, 30.2%)
CIE-LABlab(46.56, 10.88, -40.28)
CIE-LCHlch(46.56, 41.73, 285.11°)
OKLaboklab(54.31% -0.0066 -0.1141)
OKLCHoklch(54.31% 0.114 266.7)
XYZxyz(16.7891, 15.6876, 44.2541)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516CB2 #B29751
analogous
#519CB2 #516CB2 #6651B2
triadic
#516CB2 #B2516C #6CB251
tetradic
#516CB2 #B2519C #B29751 #51B266
square
#516CB2 #B2519C #B29751 #51B266
split-complementary
#516CB2 #B26651 #9CB251
monochromatic
#2A395F #3D5289 #516CB2 #7B90C5 #A6B4D8

Accessibility & contrast

On white

5.08
#516CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#516CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516CB2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516CB2#FFFFFF#000000##FFFFFF
##516CB21.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F73B5
Deuteranopia (green-blind)
#446AB0
Tritanopia (blue-blind)
#1D7B86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #516cb2;
/* rgb */ color: rgb(81, 108, 178);
/* oklch */ color: oklch(54.3% 0.114 266.7);
Tailwind
colors: {
  custom: {
    50: '#8995c9',
    500: '#516cb2',
    950: '#000000',
  },
}
SCSS
$custom: #516cb2;
$custom-light: #8995c9;
$custom-dark: #000000;
JSON
{
  "hex": "#516cb2",
  "rgb": {
    "r": 81,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 223.299,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54306,
    "c": 0.1143,
    "h": 266.7
  },
  "luminance": 0.15689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #516CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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