#5177DC#5177DC

#5177DC is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.2% C 0.160 H 266.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5177DC
RGBrgb(81, 119, 220)
HSLhsl(224, 67%, 59%)
HSVhsv(224, 63%, 86%)
CMYKcmyk(63.2%, 45.9%, 0%, 13.7%)
CIE-LABlab(51.96, 18.22, -55.75)
CIE-LCHlch(51.96, 58.65, 288.10°)
OKLaboklab(59.23% -0.0107 -0.1593)
OKLCHoklch(59.23% 0.16 266.1)
XYZxyz(22.9040, 20.1082, 70.3705)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177DC #DCB651
analogous
#51BDDC #5177DC #7151DC
triadic
#5177DC #DC5177 #77DC51
tetradic
#5177DC #DC51BD #DCB651 #51DC71
square
#5177DC #DC51BD #DCB651 #51DC71
split-complementary
#5177DC #DC7151 #BDDC51
monochromatic
#1E3E95 #2854C8 #5177DC #849FE6 #B7C7F0

Accessibility & contrast

On white

4.18
#5177DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#5177DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177DC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177DC#FFFFFF#000000##000000
##5177DC1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4583E0
Deuteranopia (green-blind)
#2D76DA
Tritanopia (blue-blind)
#008E9F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5177dc;
/* rgb */ color: rgb(81, 119, 220);
/* oklch */ color: oklch(59.2% 0.160 266.1);
Tailwind
colors: {
  custom: {
    50: '#8f9de7',
    500: '#5177dc',
    950: '#000000',
  },
}
SCSS
$custom: #5177dc;
$custom-light: #8f9de7;
$custom-dark: #000000;
JSON
{
  "hex": "#5177dc",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 220
  },
  "hsl": {
    "h": 223.597,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59226,
    "c": 0.15971,
    "h": 266.1
  },
  "luminance": 0.2011
}

Semantic roles & 50–950 ramp

primary
#5177DC
secondary
#E0D1A9
accent
#BB3EE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5177DC

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

Preview Lab → · Contrast checker → · Palette generator →

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