#5176CE#5176CE

#5176CE is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.1% C 0.142 H 265.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5176CE
RGBrgb(81, 118, 206)
HSLhsl(222, 56%, 56%)
HSVhsv(222, 61%, 81%)
CMYKcmyk(60.7%, 42.7%, 0%, 19.2%)
CIE-LABlab(50.87, 14.06, -49.55)
CIE-LCHlch(50.87, 51.50, 285.84°)
OKLaboklab(58.13% -0.012 -0.1411)
OKLCHoklch(58.13% 0.142 265.1)
XYZxyz(21.0085, 19.1606, 60.9718)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176CE #CEA951
analogous
#51B5CE #5176CE #6B51CE
triadic
#5176CE #CE5176 #76CE51
tetradic
#5176CE #CE51B5 #CEA951 #51CE6B
square
#5176CE #CE51B5 #CEA951 #51CE6B
split-complementary
#5176CE #CE6B51 #B5CE51
monochromatic
#243F80 #3257B0 #5176CE #819CDB #B1C1E9

Accessibility & contrast

On white

4.35
#5176CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5176CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176CE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176CE#FFFFFF#000000##000000
##5176CE1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7FD1
Deuteranopia (green-blind)
#3C74CC
Tritanopia (blue-blind)
#008A98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5176ce;
/* rgb */ color: rgb(81, 118, 206);
/* oklch */ color: oklch(58.1% 0.142 265.1);
Tailwind
colors: {
  custom: {
    50: '#8c9ddd',
    500: '#5176ce',
    950: '#000000',
  },
}
SCSS
$custom: #5176ce;
$custom-light: #8c9ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#5176ce",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 206
  },
  "hsl": {
    "h": 222.24,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5813,
    "c": 0.14166,
    "h": 265.1
  },
  "luminance": 0.19162
}

Semantic roles & 50–950 ramp

primary
#5176CE
secondary
#D7C8A4
accent
#B348DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5176CE

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

Preview Lab → · Contrast checker → · Palette generator →

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