#5176BB#5176BB

#5176BB is a mid, moderate blue. Relative luminance 0.183; OKLCH L 57.0% C 0.115 H 262.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5176BB
RGBrgb(81, 118, 187)
HSLhsl(219, 44%, 53%)
HSVhsv(219, 57%, 73%)
CMYKcmyk(56.7%, 36.9%, 0%, 26.7%)
CIE-LABlab(49.85, 7.69, -40.30)
CIE-LCHlch(49.85, 41.02, 280.80°)
OKLaboklab(57% -0.016 -0.1141)
OKLCHoklch(57% 0.115 262)
XYZxyz(18.8383, 18.2925, 49.5422)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176BB #BB9651
analogous
#51ABBB #5176BB #6151BB
triadic
#5176BB #BB5176 #76BB51
tetradic
#5176BB #BB51AB #BB9651 #51BB61
square
#5176BB #BB51AB #BB9651 #51BB61
split-complementary
#5176BB #BB6151 #ABBB51
monochromatic
#293F69 #3A5A95 #5176BB #7D99CC #A9BBDD

Accessibility & contrast

On white

4.51
#5176BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#5176BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176BB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176BB#FFFFFF#000000##000000
##5176BB1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7CBE
Deuteranopia (green-blind)
#4C72BA
Tritanopia (blue-blind)
#02858F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5176bb;
/* rgb */ color: rgb(81, 118, 187);
/* oklch */ color: oklch(57.0% 0.115 262.0);
Tailwind
colors: {
  custom: {
    50: '#8a9dd0',
    500: '#5176bb',
    950: '#000000',
  },
}
SCSS
$custom: #5176bb;
$custom-light: #8a9dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5176bb",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 187
  },
  "hsl": {
    "h": 219.057,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57004,
    "c": 0.11518,
    "h": 262
  },
  "luminance": 0.18294
}

Semantic roles & 50–950 ramp

primary
#5176BB
secondary
#CBBB9D
accent
#A754D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5176BB

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

Preview Lab → · Contrast checker → · Palette generator →

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