#5177CC#5177CC

#5177CC is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.2% C 0.138 H 264.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5177CC
RGBrgb(81, 119, 204)
HSLhsl(221, 55%, 56%)
HSVhsv(221, 60%, 80%)
CMYKcmyk(60.3%, 41.7%, 0%, 20%)
CIE-LABlab(51.04, 12.77, -48.15)
CIE-LCHlch(51.04, 49.81, 284.85°)
OKLaboklab(58.22% -0.0135 -0.137)
OKLCHoklch(58.22% 0.138 264.4)
XYZxyz(20.8855, 19.3008, 59.7398)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177CC #CCA651
analogous
#51B5CC #5177CC #6851CC
triadic
#5177CC #CC5177 #77CC51
tetradic
#5177CC #CC51B5 #CCA651 #51CC68
square
#5177CC #CC51B5 #CCA651 #51CC68
split-complementary
#5177CC #CC6851 #B5CC51
monochromatic
#25407E #3359AD #5177CC #809CDA #B0C1E8

Accessibility & contrast

On white

4.32
#5177CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5177CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177CC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177CC#FFFFFF#000000##000000
##5177CC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5180CF
Deuteranopia (green-blind)
#4074CA
Tritanopia (blue-blind)
#008A97
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5177cc;
/* rgb */ color: rgb(81, 119, 204);
/* oklch */ color: oklch(58.2% 0.138 264.4);
Tailwind
colors: {
  custom: {
    50: '#8c9ddc',
    500: '#5177cc',
    950: '#000000',
  },
}
SCSS
$custom: #5177cc;
$custom-light: #8c9ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#5177cc",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 204
  },
  "hsl": {
    "h": 221.463,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58219,
    "c": 0.1377,
    "h": 264.4
  },
  "luminance": 0.19303
}

Semantic roles & 50–950 ramp

primary
#5177CC
secondary
#D6C6A3
accent
#B04ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5177CC

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

Preview Lab → · Contrast checker → · Palette generator →

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