#5176B2#5176B2

#5176B2 is a mid, moderate blue. Relative luminance 0.179; OKLCH L 56.5% C 0.103 H 259.7°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#5176B2
RGBrgb(81, 118, 178)
HSLhsl(217, 39%, 51%)
HSVhsv(217, 54%, 70%)
CMYKcmyk(54.5%, 33.7%, 0%, 30.2%)
CIE-LABlab(49.40, 4.74, -35.81)
CIE-LCHlch(49.40, 36.12, 277.54°)
OKLaboklab(56.51% -0.0183 -0.101)
OKLCHoklch(56.51% 0.103 259.7)
XYZxyz(17.9049, 17.9192, 44.6261)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176B2 #B28D51
analogous
#51A6B2 #5176B2 #5C51B2
triadic
#5176B2 #B25176 #76B251
tetradic
#5176B2 #B251A6 #B28D51 #51B25C
square
#5176B2 #B251A6 #B28D51 #51B25C
split-complementary
#5176B2 #B25C51 #A6B251
monochromatic
#2A3E5F #3D5A89 #5176B2 #7B97C5 #A6B9D8

Accessibility & contrast

On white

4.58
#5176B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#5176B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176B2
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176B2#FFFFFF#000000##000000
##5176B21.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E7AB5
Deuteranopia (green-blind)
#5271B1
Tritanopia (blue-blind)
#19838C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5176b2;
/* rgb */ color: rgb(81, 118, 178);
/* oklch */ color: oklch(56.5% 0.103 259.7);
Tailwind
colors: {
  custom: {
    50: '#889dc9',
    500: '#5176b2',
    950: '#000000',
  },
}
SCSS
$custom: #5176b2;
$custom-light: #889dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5176b2",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 178
  },
  "hsl": {
    "h": 217.113,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56506,
    "c": 0.10263,
    "h": 259.7
  },
  "luminance": 0.17921
}

Semantic roles & 50–950 ramp

primary
#5176B2
secondary
#C5B59A
accent
#A259CF
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5176B2

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

Preview Lab → · Contrast checker → · Palette generator →

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