#5171E6#5171E6

#5171E6 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.7% C 0.181 H 268.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5171E6
RGBrgb(81, 113, 230)
HSLhsl(227, 75%, 61%)
HSVhsv(227, 65%, 90%)
CMYKcmyk(64.8%, 50.9%, 0%, 9.8%)
CIE-LABlab(51.00, 25.36, -62.91)
CIE-LCHlch(51.00, 67.83, 291.95°)
OKLaboklab(58.7% -0.0039 -0.1805)
OKLCHoklch(58.7% 0.181 268.8)
XYZxyz(23.5765, 19.2706, 77.3247)
Luminance0.1927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171E6 #E6C651
analogous
#51BBE6 #5171E6 #7B51E6
triadic
#5171E6 #E65171 #71E651
tetradic
#5171E6 #E651BB #E6C651 #51E67B
square
#5171E6 #E651BB #E6C651 #51E67B
split-complementary
#5171E6 #E67B51 #BBE651
monochromatic
#1836A5 #1F48DA #5171E6 #879DEE #BCC8F5

Accessibility & contrast

On white

4.33
#5171E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#5171E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171E6
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171E6#FFFFFF#000000##000000
##5171E61.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B81EA
Deuteranopia (green-blind)
#0073E4
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5171e6;
/* rgb */ color: rgb(81, 113, 230);
/* oklch */ color: oklch(58.7% 0.181 268.8);
Tailwind
colors: {
  custom: {
    50: '#9199ef',
    500: '#5171e6',
    950: '#000000',
  },
}
SCSS
$custom: #5171e6;
$custom-light: #9199ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5171e6",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 230
  },
  "hsl": {
    "h": 227.114,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58697,
    "c": 0.18056,
    "h": 268.8
  },
  "luminance": 0.19273
}

Semantic roles & 50–950 ramp

primary
#5171E6
secondary
#E5D9AD
accent
#AC0ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5171E6

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

Preview Lab → · Contrast checker → · Palette generator →

#5171E6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva