#5176C8#5176C8

#5176C8 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 57.8% C 0.133 H 264.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5176C8
RGBrgb(81, 118, 200)
HSLhsl(221, 52%, 55%)
HSVhsv(221, 60%, 78%)
CMYKcmyk(59.5%, 41%, 0%, 21.6%)
CIE-LABlab(50.54, 12.03, -46.66)
CIE-LCHlch(50.54, 48.18, 284.46°)
OKLaboklab(57.76% -0.0132 -0.1327)
OKLCHoklch(57.76% 0.133 264.3)
XYZxyz(20.2935, 18.8746, 57.2061)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176C8 #C8A351
analogous
#51B1C8 #5176C8 #6851C8
triadic
#5176C8 #C85176 #76C851
tetradic
#5176C8 #C851B1 #C8A351 #51C868
square
#5176C8 #C851B1 #C8A351 #51C868
split-complementary
#5176C8 #C86851 #B1C851
monochromatic
#264079 #3558A7 #5176C8 #809BD7 #AEBFE5

Accessibility & contrast

On white

4.40
#5176C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5176C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176C8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176C8#FFFFFF#000000##000000
##5176C81.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#527ECB
Deuteranopia (green-blind)
#4273C6
Tritanopia (blue-blind)
#008895
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5176c8;
/* rgb */ color: rgb(81, 118, 200);
/* oklch */ color: oklch(57.8% 0.133 264.3);
Tailwind
colors: {
  custom: {
    50: '#8b9dd9',
    500: '#5176c8',
    950: '#000000',
  },
}
SCSS
$custom: #5176c8;
$custom-light: #8b9dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5176c8",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 200
  },
  "hsl": {
    "h": 221.345,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57764,
    "c": 0.13333,
    "h": 264.3
  },
  "luminance": 0.18876
}

Semantic roles & 50–950 ramp

primary
#5176C8
secondary
#D3C4A1
accent
#AF4CDB
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5176C8

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

Preview Lab → · Contrast checker → · Palette generator →

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