#5177D2#5177D2

#5177D2 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.6% C 0.146 H 265.1°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5177D2
RGBrgb(81, 119, 210)
HSLhsl(222, 59%, 57%)
HSVhsv(222, 61%, 82%)
CMYKcmyk(61.4%, 43.3%, 0%, 17.6%)
CIE-LABlab(51.38, 14.80, -51.02)
CIE-LCHlch(51.38, 53.13, 286.18°)
OKLaboklab(58.59% -0.0123 -0.1455)
OKLCHoklch(58.59% 0.146 265.1)
XYZxyz(21.6190, 19.5942, 63.6030)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177D2 #D2AC51
analogous
#51B7D2 #5177D2 #6C51D2
triadic
#5177D2 #D25177 #77D251
tetradic
#5177D2 #D251B7 #D2AC51 #51D26C
square
#5177D2 #D251B7 #D2AC51 #51D26C
split-complementary
#5177D2 #D26C51 #B7D251
monochromatic
#234086 #2F57B7 #5177D2 #829DDF #B2C3EB

Accessibility & contrast

On white

4.27
#5177D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5177D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177D2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177D2#FFFFFF#000000##000000
##5177D21.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D81D5
Deuteranopia (green-blind)
#3A75D0
Tritanopia (blue-blind)
#008C9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5177d2;
/* rgb */ color: rgb(81, 119, 210);
/* oklch */ color: oklch(58.6% 0.146 265.1);
Tailwind
colors: {
  custom: {
    50: '#8d9de0',
    500: '#5177d2',
    950: '#000000',
  },
}
SCSS
$custom: #5177d2;
$custom-light: #8d9de0;
$custom-dark: #000000;
JSON
{
  "hex": "#5177d2",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 210
  },
  "hsl": {
    "h": 222.326,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58589,
    "c": 0.14599,
    "h": 265.1
  },
  "luminance": 0.19596
}

Semantic roles & 50–950 ramp

primary
#5177D2
secondary
#DACAA5
accent
#B446E2
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5177D2

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

Preview Lab → · Contrast checker → · Palette generator →

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