#5177DA#5177DA

#5177DA is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.1% C 0.157 H 266.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5177DA
RGBrgb(81, 119, 218)
HSLhsl(223, 65%, 59%)
HSVhsv(223, 63%, 85%)
CMYKcmyk(62.8%, 45.4%, 0%, 14.5%)
CIE-LABlab(51.84, 17.53, -54.81)
CIE-LCHlch(51.84, 57.54, 287.74°)
OKLaboklab(59.1% -0.011 -0.1566)
OKLCHoklch(59.1% 0.157 266)
XYZxyz(22.6407, 20.0029, 68.9839)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177DA #DAB451
analogous
#51BBDA #5177DA #6F51DA
triadic
#5177DA #DA5177 #77DA51
tetradic
#5177DA #DA51BB #DAB451 #51DA6F
square
#5177DA #DA51BB #DAB451 #51DA6F
split-complementary
#5177DA #DA6F51 #BBDA51
monochromatic
#1F3F92 #2A55C4 #5177DA #839EE5 #B6C6EF

Accessibility & contrast

On white

4.20
#5177DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5177DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177DA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177DA#FFFFFF#000000##000000
##5177DA1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4782DE
Deuteranopia (green-blind)
#3076D8
Tritanopia (blue-blind)
#008E9E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5177da;
/* rgb */ color: rgb(81, 119, 218);
/* oklch */ color: oklch(59.1% 0.157 266.0);
Tailwind
colors: {
  custom: {
    50: '#8e9de6',
    500: '#5177da',
    950: '#000000',
  },
}
SCSS
$custom: #5177da;
$custom-light: #8e9de6;
$custom-dark: #000000;
JSON
{
  "hex": "#5177da",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 218
  },
  "hsl": {
    "h": 223.358,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59096,
    "c": 0.15698,
    "h": 266
  },
  "luminance": 0.20005
}

Semantic roles & 50–950 ramp

primary
#5177DA
secondary
#DECFA8
accent
#B940E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5177DA

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

Preview Lab → · Contrast checker → · Palette generator →

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