#516BB7#516BB7

#516BB7 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.4% C 0.123 H 268.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#516BB7
RGBrgb(81, 107, 183)
HSLhsl(225, 41%, 52%)
HSVhsv(225, 56%, 72%)
CMYKcmyk(55.7%, 41.5%, 0%, 28.2%)
CIE-LABlab(46.55, 13.16, -43.20)
CIE-LCHlch(46.55, 45.16, 286.94°)
OKLaboklab(54.39% -0.0044 -0.1227)
OKLCHoklch(54.39% 0.123 268)
XYZxyz(17.1954, 15.6823, 46.9114)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516BB7 #B79D51
analogous
#519EB7 #516BB7 #6A51B7
triadic
#516BB7 #B7516B #6BB751
tetradic
#516BB7 #B7519E #B79D51 #51B76A
square
#516BB7 #B7519E #B79D51 #51B76A
split-complementary
#516BB7 #B76A51 #9EB751
monochromatic
#293864 #3B518F #516BB7 #7C90C9 #A8B5DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##516BB7#FFFFFF#000000##FFFFFF
##516BB71.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)
#4B73BA
Deuteranopia (green-blind)
#3E6AB5
Tritanopia (blue-blind)
#157C88
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #516bb7;
/* rgb */ color: rgb(81, 107, 183);
/* oklch */ color: oklch(54.4% 0.123 268.0);
Tailwind
colors: {
  custom: {
    50: '#8995cd',
    500: '#516bb7',
    950: '#000000',
  },
}
SCSS
$custom: #516bb7;
$custom-light: #8995cd;
$custom-dark: #000000;
JSON
{
  "hex": "#516bb7",
  "rgb": {
    "r": 81,
    "g": 107,
    "b": 183
  },
  "hsl": {
    "h": 224.706,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5439,
    "c": 0.12275,
    "h": 268
  },
  "luminance": 0.15684
}

Semantic roles & 50–950 ramp

primary
#516BB7
secondary
#C8BD9C
accent
#B257D1
background
#F8F9FC
surface
#F0F1F9
border
#CBCBD2
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #516BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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