#5177CD#5177CD

#5177CD is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.3% C 0.139 H 264.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5177CD
RGBrgb(81, 119, 205)
HSLhsl(222, 55%, 56%)
HSVhsv(222, 60%, 80%)
CMYKcmyk(60.5%, 42%, 0%, 19.6%)
CIE-LABlab(51.09, 13.11, -48.63)
CIE-LCHlch(51.09, 50.37, 285.08°)
OKLaboklab(58.28% -0.0133 -0.1384)
OKLCHoklch(58.28% 0.139 264.5)
XYZxyz(21.0058, 19.3490, 60.3735)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177CD #CDA751
analogous
#51B5CD #5177CD #6951CD
triadic
#5177CD #CD5177 #77CD51
tetradic
#5177CD #CD51B5 #CDA751 #51CD69
square
#5177CD #CD51B5 #CDA751 #51CD69
split-complementary
#5177CD #CD6951 #B5CD51
monochromatic
#25407F #3258AF #5177CD #819CDB #B0C1E8

Accessibility & contrast

On white

4.31
#5177CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5177CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177CD
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177CD#FFFFFF#000000##000000
##5177CD1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5180D0
Deuteranopia (green-blind)
#3F74CB
Tritanopia (blue-blind)
#008A98
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5177cd;
/* rgb */ color: rgb(81, 119, 205);
/* oklch */ color: oklch(58.3% 0.139 264.5);
Tailwind
colors: {
  custom: {
    50: '#8c9ddd',
    500: '#5177cd',
    950: '#000000',
  },
}
SCSS
$custom: #5177cd;
$custom-light: #8c9ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#5177cd",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 205
  },
  "hsl": {
    "h": 221.613,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5828,
    "c": 0.13908,
    "h": 264.5
  },
  "luminance": 0.19351
}

Semantic roles & 50–950 ramp

primary
#5177CD
secondary
#D7C7A3
accent
#B149DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5177CD

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

Preview Lab → · Contrast checker → · Palette generator →

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