#5171CE#5171CE

#5171CE is a mid, vivid blue. Relative luminance 0.180; OKLCH L 57.1% C 0.148 H 267.3°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5171CE
RGBrgb(81, 113, 206)
HSLhsl(225, 56%, 56%)
HSVhsv(225, 61%, 81%)
CMYKcmyk(60.7%, 45.1%, 0%, 19.2%)
CIE-LABlab(49.51, 17.15, -51.72)
CIE-LCHlch(49.51, 54.49, 288.35°)
OKLaboklab(57.09% -0.0069 -0.1476)
OKLCHoklch(57.09% 0.148 267.3)
XYZxyz(20.4353, 18.0141, 60.7807)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171CE #CEAE51
analogous
#51B0CE #5171CE #7051CE
triadic
#5171CE #CE5171 #71CE51
tetradic
#5171CE #CE51B0 #CEAE51 #51CE70
square
#5171CE #CE51B0 #CEAE51 #51CE70
split-complementary
#5171CE #CE7051 #B0CE51
monochromatic
#243C80 #3252B0 #5171CE #8198DB #B1BFE9

Accessibility & contrast

On white

4.56
#5171CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#5171CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171CE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171CE#FFFFFF#000000##000000
##5171CE1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#457CD2
Deuteranopia (green-blind)
#3270CC
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5171ce;
/* rgb */ color: rgb(81, 113, 206);
/* oklch */ color: oklch(57.1% 0.148 267.3);
Tailwind
colors: {
  custom: {
    50: '#8d99dd',
    500: '#5171ce',
    950: '#000000',
  },
}
SCSS
$custom: #5171ce;
$custom-light: #8d99dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5171ce",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 224.64,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57086,
    "c": 0.14776,
    "h": 267.3
  },
  "luminance": 0.18016
}

Semantic roles & 50–950 ramp

primary
#5171CE
secondary
#D7CAA4
accent
#B948DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5171CE

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

Preview Lab → · Contrast checker → · Palette generator →

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