#5171CB#5171CB

#5171CB is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.9% C 0.144 H 267.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5171CB
RGBrgb(81, 113, 203)
HSLhsl(224, 54%, 56%)
HSVhsv(224, 60%, 80%)
CMYKcmyk(60.1%, 44.3%, 0%, 20.4%)
CIE-LABlab(49.34, 16.14, -50.29)
CIE-LCHlch(49.34, 52.82, 287.79°)
OKLaboklab(56.89% -0.0073 -0.1434)
OKLCHoklch(56.89% 0.144 267.1)
XYZxyz(20.0743, 17.8697, 58.8797)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171CB #CBAB51
analogous
#51AECB #5171CB #6E51CB
triadic
#5171CB #CB5171 #71CB51
tetradic
#5171CB #CB51AE #CBAB51 #51CB6E
square
#5171CB #CB51AE #CBAB51 #51CB6E
split-complementary
#5171CB #CB6E51 #AECB51
monochromatic
#253C7C #3353AC #5171CB #8097D9 #AFBEE7

Accessibility & contrast

On white

4.59
#5171CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5171CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5171CB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171CB#FFFFFF#000000##FFFFFF
##5171CB1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#487BCE
Deuteranopia (green-blind)
#3570C9
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5171cb;
/* rgb */ color: rgb(81, 113, 203);
/* oklch */ color: oklch(56.9% 0.144 267.1);
Tailwind
colors: {
  custom: {
    50: '#8c99db',
    500: '#5171cb',
    950: '#000000',
  },
}
SCSS
$custom: #5171cb;
$custom-light: #8c99db;
$custom-dark: #000000;
JSON
{
  "hex": "#5171cb",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 224.262,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56894,
    "c": 0.14358,
    "h": 267.1
  },
  "luminance": 0.17871
}

Semantic roles & 50–950 ramp

primary
#5171CB
secondary
#D5C8A3
accent
#B74ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5171CB

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

Preview Lab → · Contrast checker → · Palette generator →

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