#5176DE#5176DE

#5176DE is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.2% C 0.164 H 266.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5176DE
RGBrgb(81, 118, 222)
HSLhsl(224, 68%, 59%)
HSVhsv(224, 64%, 87%)
CMYKcmyk(63.5%, 46.8%, 0%, 12.9%)
CIE-LABlab(51.81, 19.52, -57.11)
CIE-LCHlch(51.81, 60.35, 288.87°)
OKLaboklab(59.15% -0.0095 -0.1634)
OKLCHoklch(59.15% 0.164 266.7)
XYZxyz(23.0521, 19.9780, 71.7344)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176DE #DEB951
analogous
#51BDDE #5176DE #7351DE
triadic
#5176DE #DE5176 #76DE51
tetradic
#5176DE #DE51BD #DEB951 #51DE73
square
#5176DE #DE51BD #DEB951 #51DE73
split-complementary
#5176DE #DE7351 #BDDE51
monochromatic
#1D3D98 #2752CB #5176DE #849FE8 #B8C7F2

Accessibility & contrast

On white

4.20
#5176DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5176DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176DE
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176DE#FFFFFF#000000##000000
##5176DE1.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)
#4182E2
Deuteranopia (green-blind)
#2675DC
Tritanopia (blue-blind)
#008E9F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5176de;
/* rgb */ color: rgb(81, 118, 222);
/* oklch */ color: oklch(59.2% 0.164 266.7);
Tailwind
colors: {
  custom: {
    50: '#8f9de9',
    500: '#5176de',
    950: '#000000',
  },
}
SCSS
$custom: #5176de;
$custom-light: #8f9de9;
$custom-dark: #000000;
JSON
{
  "hex": "#5176de",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 222
  },
  "hsl": {
    "h": 224.255,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59152,
    "c": 0.16364,
    "h": 266.7
  },
  "luminance": 0.1998
}

Semantic roles & 50–950 ramp

primary
#5176DE
secondary
#E1D2AA
accent
#BD3DEB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5176DE

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

Preview Lab → · Contrast checker → · Palette generator →

#5176DE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva