#5176E4#5176E4

#5176E4 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.6% C 0.172 H 267.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5176E4
RGBrgb(81, 118, 228)
HSLhsl(225, 73%, 61%)
HSVhsv(225, 64%, 89%)
CMYKcmyk(64.5%, 48.2%, 0%, 10.6%)
CIE-LABlab(52.18, 21.58, -59.89)
CIE-LCHlch(52.18, 63.66, 289.81°)
OKLaboklab(59.55% -0.0087 -0.1716)
OKLCHoklch(59.55% 0.172 267.1)
XYZxyz(23.8705, 20.3054, 76.0451)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176E4 #E4BF51
analogous
#51BFE4 #5176E4 #7551E4
triadic
#5176E4 #E45176 #76E451
tetradic
#5176E4 #E451BF #E4BF51 #51E475
square
#5176E4 #E451BF #E4BF51 #51E475
split-complementary
#5176E4 #E47551 #BFE451
monochromatic
#193BA2 #214FD7 #5176E4 #86A0EC #BBC9F4

Accessibility & contrast

On white

4.15
#5176E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#5176E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176E4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176E4#FFFFFF#000000##000000
##5176E41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B83E8
Deuteranopia (green-blind)
#1876E2
Tritanopia (blue-blind)
#008FA2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5176e4;
/* rgb */ color: rgb(81, 118, 228);
/* oklch */ color: oklch(59.6% 0.172 267.1);
Tailwind
colors: {
  custom: {
    50: '#909ded',
    500: '#5176e4',
    950: '#000000',
  },
}
SCSS
$custom: #5176e4;
$custom-light: #909ded;
$custom-dark: #000000;
JSON
{
  "hex": "#5176e4",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 228
  },
  "hsl": {
    "h": 224.898,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59551,
    "c": 0.17178,
    "h": 267.1
  },
  "luminance": 0.20308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5176E4

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

Preview Lab → · Contrast checker → · Palette generator →

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