#5176D6#5176D6

#5176D6 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.6% C 0.153 H 266.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5176D6
RGBrgb(81, 118, 214)
HSLhsl(223, 62%, 58%)
HSVhsv(223, 62%, 84%)
CMYKcmyk(62.1%, 44.9%, 0%, 16.1%)
CIE-LABlab(51.34, 16.78, -53.35)
CIE-LCHlch(51.34, 55.93, 287.46°)
OKLaboklab(58.63% -0.0107 -0.1523)
OKLCHoklch(58.63% 0.153 266)
XYZxyz(22.0052, 19.5593, 66.2210)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176D6 #D6B151
analogous
#51B9D6 #5176D6 #6E51D6
triadic
#5176D6 #D65176 #76D651
tetradic
#5176D6 #D651B9 #D6B151 #51D66E
square
#5176D6 #D651B9 #D6B151 #51D66E
split-complementary
#5176D6 #D66E51 #B9D651
monochromatic
#213F8C #2D55BD #5176D6 #839DE2 #B4C4ED

Accessibility & contrast

On white

4.28
#5176D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5176D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176D6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176D6#FFFFFF#000000##000000
##5176D61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4881DA
Deuteranopia (green-blind)
#3375D4
Tritanopia (blue-blind)
#008C9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5176d6;
/* rgb */ color: rgb(81, 118, 214);
/* oklch */ color: oklch(58.6% 0.153 266.0);
Tailwind
colors: {
  custom: {
    50: '#8e9de3',
    500: '#5176d6',
    950: '#000000',
  },
}
SCSS
$custom: #5176d6;
$custom-light: #8e9de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5176d6",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 214
  },
  "hsl": {
    "h": 223.308,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58633,
    "c": 0.1527,
    "h": 266
  },
  "luminance": 0.19561
}

Semantic roles & 50–950 ramp

primary
#5176D6
secondary
#DCCDA7
accent
#B843E5
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E15
muted
#7E7E84

Preview Lab

Preview with #5176D6

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

Preview Lab → · Contrast checker → · Palette generator →

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