#5171CC#5171CC

#5171CC is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.0% C 0.145 H 267.2°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#5171CC
RGBrgb(81, 113, 204)
HSLhsl(224, 55%, 56%)
HSVhsv(224, 60%, 80%)
CMYKcmyk(60.3%, 44.6%, 0%, 20%)
CIE-LABlab(49.40, 16.47, -50.77)
CIE-LCHlch(49.40, 53.37, 287.98°)
OKLaboklab(56.96% -0.0072 -0.1448)
OKLCHoklch(56.96% 0.145 267.2)
XYZxyz(20.1938, 17.9175, 59.5093)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171CC #CCAC51
analogous
#51AFCC #5171CC #6E51CC
triadic
#5171CC #CC5171 #71CC51
tetradic
#5171CC #CC51AF #CCAC51 #51CC6E
square
#5171CC #CC51AF #CCAC51 #51CC6E
split-complementary
#5171CC #CC6E51 #AFCC51
monochromatic
#253C7E #3353AD #5171CC #8098DA #B0BEE8

Accessibility & contrast

On white

4.58
#5171CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#5171CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171CC
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171CC#FFFFFF#000000##000000
##5171CC1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#3470CA
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5171cc;
/* rgb */ color: rgb(81, 113, 204);
/* oklch */ color: oklch(57.0% 0.145 267.2);
Tailwind
colors: {
  custom: {
    50: '#8c99dc',
    500: '#5171cc',
    950: '#000000',
  },
}
SCSS
$custom: #5171cc;
$custom-light: #8c99dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5171cc",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 224.39,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56958,
    "c": 0.14498,
    "h": 267.2
  },
  "luminance": 0.17919
}

Semantic roles & 50–950 ramp

primary
#5171CC
secondary
#D6C9A3
accent
#B74ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5171CC

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

Preview Lab → · Contrast checker → · Palette generator →

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