#5177E2#5177E2

#5177E2 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.6% C 0.168 H 266.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5177E2
RGBrgb(81, 119, 226)
HSLhsl(224, 71%, 60%)
HSVhsv(224, 64%, 89%)
CMYKcmyk(64.2%, 47.3%, 0%, 11.4%)
CIE-LABlab(52.32, 20.27, -58.54)
CIE-LCHlch(52.32, 61.95, 289.10°)
OKLaboklab(59.62% -0.0099 -0.1676)
OKLCHoklch(59.62% 0.168 266.6)
XYZxyz(23.7129, 20.4318, 74.6308)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177E2 #E2BC51
analogous
#51BFE2 #5177E2 #7351E2
triadic
#5177E2 #E25177 #77E251
tetradic
#5177E2 #E251BF #E2BC51 #51E273
square
#5177E2 #E251BF #E2BC51 #51E273
split-complementary
#5177E2 #E27351 #BFE251
monochromatic
#1A3D9E #2351D3 #5177E2 #85A0EB #BAC9F3

Accessibility & contrast

On white

4.13
#5177E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5177E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177E2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177E2#FFFFFF#000000##000000
##5177E21.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4084E6
Deuteranopia (green-blind)
#2277E0
Tritanopia (blue-blind)
#0090A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5177e2;
/* rgb */ color: rgb(81, 119, 226);
/* oklch */ color: oklch(59.6% 0.168 266.6);
Tailwind
colors: {
  custom: {
    50: '#909dec',
    500: '#5177e2',
    950: '#000000',
  },
}
SCSS
$custom: #5177e2;
$custom-light: #909dec;
$custom-dark: #000000;
JSON
{
  "hex": "#5177e2",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 226
  },
  "hsl": {
    "h": 224.276,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59619,
    "c": 0.16786,
    "h": 266.6
  },
  "luminance": 0.20434
}

Semantic roles & 50–950 ramp

primary
#5177E2
secondary
#E3D5AC
accent
#A112D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5177E2

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

Preview Lab → · Contrast checker → · Palette generator →

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