#5176CC#5176CC

#5176CC is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.0% C 0.139 H 264.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5176CC
RGBrgb(81, 118, 204)
HSLhsl(222, 55%, 56%)
HSVhsv(222, 60%, 80%)
CMYKcmyk(60.3%, 42.2%, 0%, 20%)
CIE-LABlab(50.76, 13.38, -48.59)
CIE-LCHlch(50.76, 50.40, 285.40°)
OKLaboklab(58.01% -0.0124 -0.1383)
OKLCHoklch(58.01% 0.139 264.9)
XYZxyz(20.7671, 19.0641, 59.7004)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176CC #CCA751
analogous
#51B4CC #5176CC #6951CC
triadic
#5176CC #CC5176 #76CC51
tetradic
#5176CC #CC51B4 #CCA751 #51CC69
square
#5176CC #CC51B4 #CCA751 #51CC69
split-complementary
#5176CC #CC6951 #B4CC51
monochromatic
#25407E #3358AD #5176CC #809BDA #B0C1E8

Accessibility & contrast

On white

4.36
#5176CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5176CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176CC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176CC#FFFFFF#000000##000000
##5176CC1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#507FCF
Deuteranopia (green-blind)
#3E74CA
Tritanopia (blue-blind)
#008997
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5176cc;
/* rgb */ color: rgb(81, 118, 204);
/* oklch */ color: oklch(58.0% 0.139 264.9);
Tailwind
colors: {
  custom: {
    50: '#8c9ddc',
    500: '#5176cc',
    950: '#000000',
  },
}
SCSS
$custom: #5176cc;
$custom-light: #8c9ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#5176cc",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 204
  },
  "hsl": {
    "h": 221.951,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58007,
    "c": 0.1389,
    "h": 264.9
  },
  "luminance": 0.19066
}

Semantic roles & 50–950 ramp

primary
#5176CC
secondary
#D6C7A3
accent
#B14ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5176CC

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

Preview Lab → · Contrast checker → · Palette generator →

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