#5176CD#5176CD

#5176CD is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.1% C 0.140 H 265.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5176CD
RGBrgb(81, 118, 205)
HSLhsl(222, 55%, 56%)
HSVhsv(222, 60%, 80%)
CMYKcmyk(60.5%, 42.4%, 0%, 19.6%)
CIE-LABlab(50.82, 13.72, -49.07)
CIE-LCHlch(50.82, 50.95, 285.62°)
OKLaboklab(58.07% -0.0122 -0.1398)
OKLCHoklch(58.07% 0.14 265)
XYZxyz(20.8874, 19.1122, 60.3341)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176CD #CDA851
analogous
#51B4CD #5176CD #6A51CD
triadic
#5176CD #CD5176 #76CD51
tetradic
#5176CD #CD51B4 #CDA851 #51CD6A
square
#5176CD #CD51B4 #CDA851 #51CD6A
split-complementary
#5176CD #CD6A51 #B4CD51
monochromatic
#25407F #3257AF #5176CD #819BDB #B0C1E8

Accessibility & contrast

On white

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

On black

4.82
#5176CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176CD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176CD#FFFFFF#000000##000000
##5176CD1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FD0
Deuteranopia (green-blind)
#3D74CB
Tritanopia (blue-blind)
#008A97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5176cd;
/* rgb */ color: rgb(81, 118, 205);
/* oklch */ color: oklch(58.1% 0.140 265.0);
Tailwind
colors: {
  custom: {
    50: '#8c9ddd',
    500: '#5176cd',
    950: '#000000',
  },
}
SCSS
$custom: #5176cd;
$custom-light: #8c9ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#5176cd",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 205
  },
  "hsl": {
    "h": 222.097,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58069,
    "c": 0.14028,
    "h": 265
  },
  "luminance": 0.19114
}

Semantic roles & 50–950 ramp

primary
#5176CD
secondary
#D7C7A3
accent
#B249DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5176CD

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

Preview Lab → · Contrast checker → · Palette generator →

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