#5176D2#5176D2

#5176D2 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.4% C 0.147 H 265.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5176D2
RGBrgb(81, 118, 210)
HSLhsl(223, 59%, 57%)
HSVhsv(223, 61%, 82%)
CMYKcmyk(61.4%, 43.8%, 0%, 17.6%)
CIE-LABlab(51.10, 15.42, -51.46)
CIE-LCHlch(51.10, 53.72, 286.68°)
OKLaboklab(58.38% -0.0113 -0.1468)
OKLCHoklch(58.38% 0.147 265.6)
XYZxyz(21.5006, 19.3575, 63.5636)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176D2 #D2AD51
analogous
#51B6D2 #5176D2 #6D51D2
triadic
#5176D2 #D25176 #76D251
tetradic
#5176D2 #D251B6 #D2AD51 #51D26D
square
#5176D2 #D251B6 #D2AD51 #51D26D
split-complementary
#5176D2 #D26D51 #B6D251
monochromatic
#233F86 #2F56B7 #5176D2 #829CDF #B2C3EB

Accessibility & contrast

On white

4.31
#5176D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5176D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176D2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176D2#FFFFFF#000000##000000
##5176D21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B80D6
Deuteranopia (green-blind)
#3874D0
Tritanopia (blue-blind)
#008B9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5176d2;
/* rgb */ color: rgb(81, 118, 210);
/* oklch */ color: oklch(58.4% 0.147 265.6);
Tailwind
colors: {
  custom: {
    50: '#8d9de0',
    500: '#5176d2',
    950: '#000000',
  },
}
SCSS
$custom: #5176d2;
$custom-light: #8d9de0;
$custom-dark: #000000;
JSON
{
  "hex": "#5176d2",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 210
  },
  "hsl": {
    "h": 222.791,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5838,
    "c": 0.1472,
    "h": 265.6
  },
  "luminance": 0.19359
}

Semantic roles & 50–950 ramp

primary
#5176D2
secondary
#DACBA5
accent
#B546E2
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5176D2

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

Preview Lab → · Contrast checker → · Palette generator →

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