#5176EB#5176EB

#5176EB is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.0% C 0.181 H 267.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5176EB
RGBrgb(81, 118, 235)
HSLhsl(226, 79%, 62%)
HSVhsv(226, 66%, 92%)
CMYKcmyk(65.5%, 49.8%, 0%, 7.8%)
CIE-LABlab(52.62, 23.98, -63.10)
CIE-LCHlch(52.62, 67.51, 290.81°)
OKLaboklab(60.03% -0.0079 -0.181)
OKLCHoklch(60.03% 0.181 267.5)
XYZxyz(24.8620, 20.7020, 81.2668)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176EB #EBC651
analogous
#51C3EB #5176EB #7951EB
triadic
#5176EB #EB5176 #76EB51
tetradic
#5176EB #EB51C3 #EBC651 #51EB79
square
#5176EB #EB51C3 #EBC651 #51EB79
split-complementary
#5176EB #EB7951 #C3EB51
monochromatic
#1439AE #1A4BE5 #5176EB #88A1F1 #BFCCF8

Accessibility & contrast

On white

4.08
#5176EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5176EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176EB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176EB#FFFFFF#000000##000000
##5176EB1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3385EF
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#0091A5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5176eb;
/* rgb */ color: rgb(81, 118, 235);
/* oklch */ color: oklch(60.0% 0.181 267.5);
Tailwind
colors: {
  custom: {
    50: '#919df2',
    500: '#5176eb',
    950: '#000000',
  },
}
SCSS
$custom: #5176eb;
$custom-light: #919df2;
$custom-dark: #000000;
JSON
{
  "hex": "#5176eb",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 235
  },
  "hsl": {
    "h": 225.584,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60028,
    "c": 0.18118,
    "h": 267.5
  },
  "luminance": 0.20704
}

Semantic roles & 50–950 ramp

primary
#5176EB
secondary
#E8DBB0
accent
#A90ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5176EB

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

Preview Lab → · Contrast checker → · Palette generator →

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