#5177E4#5177E4

#5177E4 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.8% C 0.171 H 266.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5177E4
RGBrgb(81, 119, 228)
HSLhsl(224, 73%, 61%)
HSVhsv(224, 64%, 89%)
CMYKcmyk(64.5%, 47.8%, 0%, 10.6%)
CIE-LABlab(52.44, 20.96, -59.47)
CIE-LCHlch(52.44, 63.05, 289.42°)
OKLaboklab(59.75% -0.0096 -0.1703)
OKLCHoklch(59.75% 0.171 266.8)
XYZxyz(23.9889, 20.5422, 76.0846)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177E4 #E4BE51
analogous
#51C0E4 #5177E4 #7451E4
triadic
#5177E4 #E45177 #77E451
tetradic
#5177E4 #E451C0 #E4BE51 #51E474
square
#5177E4 #E451C0 #E4BE51 #51E474
split-complementary
#5177E4 #E47451 #C0E451
monochromatic
#193CA2 #2150D7 #5177E4 #86A0EC #BBCAF4

Accessibility & contrast

On white

4.11
#5177E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#5177E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177E4
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177E4#FFFFFF#000000##000000
##5177E41.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E84E8
Deuteranopia (green-blind)
#1D77E2
Tritanopia (blue-blind)
#0090A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5177e4;
/* rgb */ color: rgb(81, 119, 228);
/* oklch */ color: oklch(59.8% 0.171 266.8);
Tailwind
colors: {
  custom: {
    50: '#909ded',
    500: '#5177e4',
    950: '#000000',
  },
}
SCSS
$custom: #5177e4;
$custom-light: #909ded;
$custom-dark: #000000;
JSON
{
  "hex": "#5177e4",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 228
  },
  "hsl": {
    "h": 224.49,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59753,
    "c": 0.17057,
    "h": 266.8
  },
  "luminance": 0.20544
}

Semantic roles & 50–950 ramp

primary
#5177E4
secondary
#E4D6AC
accent
#A210D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5177E4

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

Preview Lab → · Contrast checker → · Palette generator →

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