#5176DC#5176DC

#5176DC is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.0% C 0.161 H 266.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5176DC
RGBrgb(81, 118, 220)
HSLhsl(224, 67%, 59%)
HSVhsv(224, 63%, 86%)
CMYKcmyk(63.2%, 46.4%, 0%, 13.7%)
CIE-LABlab(51.69, 18.83, -56.18)
CIE-LCHlch(51.69, 59.25, 288.53°)
OKLaboklab(59.02% -0.0097 -0.1606)
OKLCHoklch(59.02% 0.161 266.5)
XYZxyz(22.7856, 19.8714, 70.3311)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176DC #DCB751
analogous
#51BCDC #5176DC #7251DC
triadic
#5176DC #DC5176 #76DC51
tetradic
#5176DC #DC51BC #DCB751 #51DC72
square
#5176DC #DC51BC #DCB751 #51DC72
split-complementary
#5176DC #DC7251 #BCDC51
monochromatic
#1E3E95 #2853C8 #5176DC #849EE6 #B7C6F0

Accessibility & contrast

On white

4.22
#5176DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5176DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176DC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176DC#FFFFFF#000000##000000
##5176DC1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4382E0
Deuteranopia (green-blind)
#2A75DA
Tritanopia (blue-blind)
#008D9E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5176dc;
/* rgb */ color: rgb(81, 118, 220);
/* oklch */ color: oklch(59.0% 0.161 266.5);
Tailwind
colors: {
  custom: {
    50: '#8f9de7',
    500: '#5176dc',
    950: '#000000',
  },
}
SCSS
$custom: #5176dc;
$custom-light: #8f9de7;
$custom-dark: #000000;
JSON
{
  "hex": "#5176dc",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 220
  },
  "hsl": {
    "h": 224.029,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59021,
    "c": 0.16093,
    "h": 266.5
  },
  "luminance": 0.19874
}

Semantic roles & 50–950 ramp

primary
#5176DC
secondary
#E0D1A9
accent
#BC3EE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5176DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5176DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva