#5171EB#5171EB

#5171EB is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.187 H 268.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5171EB
RGBrgb(81, 113, 235)
HSLhsl(228, 79%, 62%)
HSVhsv(228, 66%, 92%)
CMYKcmyk(65.5%, 51.9%, 0%, 7.8%)
CIE-LABlab(51.33, 27.07, -65.19)
CIE-LCHlch(51.33, 70.59, 292.55°)
OKLaboklab(59.05% -0.0035 -0.1872)
OKLCHoklch(59.05% 0.187 268.9)
XYZxyz(24.2887, 19.5555, 81.0757)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171EB #EBCB51
analogous
#51BEEB #5171EB #7E51EB
triadic
#5171EB #EB5171 #71EB51
tetradic
#5171EB #EB51BE #EBCB51 #51EB7E
square
#5171EB #EB51BE #EBCB51 #51EB7E
split-complementary
#5171EB #EB7E51 #BEEB51
monochromatic
#1434AE #1A44E5 #5171EB #889EF1 #BFCBF8

Accessibility & contrast

On white

4.28
#5171EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5171EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171EB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171EB#FFFFFF#000000##000000
##5171EB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2282EF
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5171eb;
/* rgb */ color: rgb(81, 113, 235);
/* oklch */ color: oklch(59.1% 0.187 268.9);
Tailwind
colors: {
  custom: {
    50: '#9199f2',
    500: '#5171eb',
    950: '#000000',
  },
}
SCSS
$custom: #5171eb;
$custom-light: #9199f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5171eb",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 227.532,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.5905,
    "c": 0.18724,
    "h": 268.9
  },
  "luminance": 0.19558
}

Semantic roles & 50–950 ramp

primary
#5171EB
secondary
#E8DCB0
accent
#B00ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5171EB

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

Preview Lab → · Contrast checker → · Palette generator →

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