#5171DF#5171DF

#5171DF is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.2% C 0.171 H 268.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5171DF
RGBrgb(81, 113, 223)
HSLhsl(226, 69%, 60%)
HSVhsv(226, 64%, 87%)
CMYKcmyk(63.7%, 49.3%, 0%, 12.5%)
CIE-LABlab(50.55, 22.96, -59.70)
CIE-LCHlch(50.55, 63.96, 291.03°)
OKLaboklab(58.21% -0.0046 -0.171)
OKLCHoklch(58.21% 0.171 268.5)
XYZxyz(22.6132, 18.8853, 72.2513)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171DF #DFBF51
analogous
#51B8DF #5171DF #7851DF
triadic
#5171DF #DF5171 #71DF51
tetradic
#5171DF #DF51B8 #DFBF51 #51DF78
square
#5171DF #DF51B8 #DFBF51 #51DF78
split-complementary
#5171DF #DF7851 #B8DF51
monochromatic
#1C3899 #264BCD #5171DF #859BE9 #B8C5F2

Accessibility & contrast

On white

4.40
#5171DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5171DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171DF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171DF#FFFFFF#000000##000000
##5171DF1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#357FE3
Deuteranopia (green-blind)
#0D72DD
Tritanopia (blue-blind)
#008B9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5171df;
/* rgb */ color: rgb(81, 113, 223);
/* oklch */ color: oklch(58.2% 0.171 268.5);
Tailwind
colors: {
  custom: {
    50: '#8f99ea',
    500: '#5171df',
    950: '#000000',
  },
}
SCSS
$custom: #5171df;
$custom-light: #8f99ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5171df",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 226.479,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58213,
    "c": 0.17111,
    "h": 268.5
  },
  "luminance": 0.18887
}

Semantic roles & 50–950 ramp

primary
#5171DF
secondary
#E1D5AA
accent
#C43CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5171DF

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

Preview Lab → · Contrast checker → · Palette generator →

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