#5171EA#5171EA

#5171EA is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.186 H 268.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5171EA
RGBrgb(81, 113, 234)
HSLhsl(227, 78%, 62%)
HSVhsv(227, 65%, 92%)
CMYKcmyk(65.4%, 51.7%, 0%, 8.2%)
CIE-LABlab(51.26, 26.73, -64.74)
CIE-LCHlch(51.26, 70.04, 292.44°)
OKLaboklab(58.98% -0.0035 -0.1859)
OKLCHoklch(58.98% 0.186 268.9)
XYZxyz(24.1447, 19.4979, 80.3170)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171EA #EACA51
analogous
#51BEEA #5171EA #7E51EA
triadic
#5171EA #EA5171 #71EA51
tetradic
#5171EA #EA51BE #EACA51 #51EA7E
square
#5171EA #EA51BE #EACA51 #51EA7E
split-complementary
#5171EA #EA7E51 #BEEA51
monochromatic
#1534AC #1B45E2 #5171EA #889EF1 #BECAF7

Accessibility & contrast

On white

4.29
#5171EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5171EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171EA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171EA#FFFFFF#000000##000000
##5171EA1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2481EE
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5171ea;
/* rgb */ color: rgb(81, 113, 234);
/* oklch */ color: oklch(59.0% 0.186 268.9);
Tailwind
colors: {
  custom: {
    50: '#9199f1',
    500: '#5171ea',
    950: '#000000',
  },
}
SCSS
$custom: #5171ea;
$custom-light: #9199f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5171ea",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 227.451,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58979,
    "c": 0.1859,
    "h": 268.9
  },
  "luminance": 0.195
}

Semantic roles & 50–950 ramp

primary
#5171EA
secondary
#E8DCAF
accent
#AF0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5171EA

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

Preview Lab → · Contrast checker → · Palette generator →

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