#5177DD#5177DD

#5177DD is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.3% C 0.161 H 266.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5177DD
RGBrgb(81, 119, 221)
HSLhsl(224, 67%, 59%)
HSVhsv(224, 63%, 87%)
CMYKcmyk(63.3%, 46.2%, 0%, 13.3%)
CIE-LABlab(52.02, 18.56, -56.21)
CIE-LCHlch(52.02, 59.20, 288.27°)
OKLaboklab(59.29% -0.0106 -0.1607)
OKLCHoklch(59.29% 0.161 266.2)
XYZxyz(23.0368, 20.1614, 71.0701)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177DD #DDB751
analogous
#51BDDD #5177DD #7151DD
triadic
#5177DD #DD5177 #77DD51
tetradic
#5177DD #DD51BD #DDB751 #51DD71
square
#5177DD #DD51BD #DDB751 #51DD71
split-complementary
#5177DD #DD7151 #BDDD51
monochromatic
#1D3E96 #2753C9 #5177DD #849FE7 #B7C7F1

Accessibility & contrast

On white

4.17
#5177DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5177DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177DD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177DD#FFFFFF#000000##000000
##5177DD1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4483E1
Deuteranopia (green-blind)
#2B76DB
Tritanopia (blue-blind)
#008E9F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5177dd;
/* rgb */ color: rgb(81, 119, 221);
/* oklch */ color: oklch(59.3% 0.161 266.2);
Tailwind
colors: {
  custom: {
    50: '#8f9de8',
    500: '#5177dd',
    950: '#000000',
  },
}
SCSS
$custom: #5177dd;
$custom-light: #8f9de8;
$custom-dark: #000000;
JSON
{
  "hex": "#5177dd",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 221
  },
  "hsl": {
    "h": 223.714,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59291,
    "c": 0.16108,
    "h": 266.2
  },
  "luminance": 0.20163
}

Semantic roles & 50–950 ramp

primary
#5177DD
secondary
#E0D1AA
accent
#BB3EEA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5177DD

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

Preview Lab → · Contrast checker → · Palette generator →

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