#5171DE#5171DE

#5171DE is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.1% C 0.170 H 268.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5171DE
RGBrgb(81, 113, 222)
HSLhsl(226, 68%, 59%)
HSVhsv(226, 64%, 87%)
CMYKcmyk(63.5%, 49.1%, 0%, 12.9%)
CIE-LABlab(50.49, 22.61, -59.24)
CIE-LCHlch(50.49, 63.41, 290.89°)
OKLaboklab(58.14% -0.0047 -0.1697)
OKLCHoklch(58.14% 0.17 268.4)
XYZxyz(22.4788, 18.8315, 71.5433)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171DE #DEBE51
analogous
#51B8DE #5171DE #7851DE
triadic
#5171DE #DE5171 #71DE51
tetradic
#5171DE #DE51B8 #DEBE51 #51DE78
square
#5171DE #DE51B8 #DEBE51 #51DE78
split-complementary
#5171DE #DE7851 #B8DE51
monochromatic
#1D3998 #274CCB #5171DE #849BE8 #B8C5F2

Accessibility & contrast

On white

4.41
#5171DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#5171DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171DE
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171DE#FFFFFF#000000##000000
##5171DE1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#367FE2
Deuteranopia (green-blind)
#1172DC
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5171de;
/* rgb */ color: rgb(81, 113, 222);
/* oklch */ color: oklch(58.1% 0.170 268.4);
Tailwind
colors: {
  custom: {
    50: '#8f99e9',
    500: '#5171de',
    950: '#000000',
  },
}
SCSS
$custom: #5171de;
$custom-light: #8f99e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5171de",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 222
  },
  "hsl": {
    "h": 226.383,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58144,
    "c": 0.16976,
    "h": 268.4
  },
  "luminance": 0.18834
}

Semantic roles & 50–950 ramp

primary
#5171DE
secondary
#E1D4AA
accent
#C33DEB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5171DE

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

Preview Lab → · Contrast checker → · Palette generator →

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