#5177D5#5177D5

#5177D5 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 58.8% C 0.150 H 265.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5177D5
RGBrgb(81, 119, 213)
HSLhsl(223, 61%, 58%)
HSVhsv(223, 62%, 84%)
CMYKcmyk(62%, 44.1%, 0%, 16.5%)
CIE-LABlab(51.55, 15.82, -52.45)
CIE-LCHlch(51.55, 54.78, 286.79°)
OKLaboklab(58.78% -0.0118 -0.1497)
OKLCHoklch(58.78% 0.15 265.5)
XYZxyz(21.9963, 19.7451, 65.5899)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177D5 #D5AF51
analogous
#51B9D5 #5177D5 #6D51D5
triadic
#5177D5 #D55177 #77D551
tetradic
#5177D5 #D551B9 #D5AF51 #51D56D
square
#5177D5 #D551B9 #D5AF51 #51D56D
split-complementary
#5177D5 #D56D51 #B9D551
monochromatic
#21408A #2D56BC #5177D5 #829EE1 #B4C4ED

Accessibility & contrast

On white

4.24
#5177D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5177D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177D5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177D5#FFFFFF#000000##000000
##5177D51.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B81D9
Deuteranopia (green-blind)
#3675D3
Tritanopia (blue-blind)
#008C9C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5177d5;
/* rgb */ color: rgb(81, 119, 213);
/* oklch */ color: oklch(58.8% 0.150 265.5);
Tailwind
colors: {
  custom: {
    50: '#8d9de2',
    500: '#5177d5',
    950: '#000000',
  },
}
SCSS
$custom: #5177d5;
$custom-light: #8d9de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5177d5",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 213
  },
  "hsl": {
    "h": 222.727,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.58777,
    "c": 0.15013,
    "h": 265.5
  },
  "luminance": 0.19747
}

Semantic roles & 50–950 ramp

primary
#5177D5
secondary
#DBCCA6
accent
#B644E4
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5177D5

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

Preview Lab → · Contrast checker → · Palette generator →

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