#5177CB#5177CB

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

Color values

HEX#5177CB
RGBrgb(81, 119, 203)
HSLhsl(221, 54%, 56%)
HSVhsv(221, 60%, 80%)
CMYKcmyk(60.1%, 41.4%, 0%, 20.4%)
CIE-LABlab(50.98, 12.43, -47.67)
CIE-LCHlch(50.98, 49.26, 284.61°)
OKLaboklab(58.16% -0.0136 -0.1356)
OKLCHoklch(58.16% 0.136 264.3)
XYZxyz(20.7659, 19.2530, 59.1102)
Luminance0.1925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177CB #CBA551
analogous
#51B4CB #5177CB #6851CB
triadic
#5177CB #CB5177 #77CB51
tetradic
#5177CB #CB51B4 #CBA551 #51CB68
square
#5177CB #CB51B4 #CBA551 #51CB68
split-complementary
#5177CB #CB6851 #B4CB51
monochromatic
#25407C #3359AC #5177CB #809CD9 #AFC1E7

Accessibility & contrast

On white

4.33
#5177CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#5177CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177CB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177CB#FFFFFF#000000##000000
##5177CB1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#527FCE
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#008A97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5177cb;
/* rgb */ color: rgb(81, 119, 203);
/* oklch */ color: oklch(58.2% 0.136 264.3);
Tailwind
colors: {
  custom: {
    50: '#8c9ddb',
    500: '#5177cb',
    950: '#000000',
  },
}
SCSS
$custom: #5177cb;
$custom-light: #8c9ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5177cb",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 203
  },
  "hsl": {
    "h": 221.311,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58159,
    "c": 0.13632,
    "h": 264.3
  },
  "luminance": 0.19255
}

Semantic roles & 50–950 ramp

primary
#5177CB
secondary
#D5C5A3
accent
#B04ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5177CB

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

Preview Lab → · Contrast checker → · Palette generator →

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