#5171CD#5171CD

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

Color values

HEX#5171CD
RGBrgb(81, 113, 205)
HSLhsl(225, 55%, 56%)
HSVhsv(225, 60%, 80%)
CMYKcmyk(60.5%, 44.9%, 0%, 19.6%)
CIE-LABlab(49.45, 16.81, -51.25)
CIE-LCHlch(49.45, 53.93, 288.16°)
OKLaboklab(57.02% -0.007 -0.1462)
OKLCHoklch(57.02% 0.146 267.3)
XYZxyz(20.3142, 17.9656, 60.1430)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171CD #CDAD51
analogous
#51AFCD #5171CD #6F51CD
triadic
#5171CD #CD5171 #71CD51
tetradic
#5171CD #CD51AF #CDAD51 #51CD6F
square
#5171CD #CD51AF #CDAD51 #51CD6F
split-complementary
#5171CD #CD6F51 #AFCD51
monochromatic
#253C7F #3252AF #5171CD #8198DB #B0BFE8

Accessibility & contrast

On white

4.57
#5171CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#5171CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171CD
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171CD#FFFFFF#000000##000000
##5171CD1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#467CD0
Deuteranopia (green-blind)
#3370CB
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5171cd;
/* rgb */ color: rgb(81, 113, 205);
/* oklch */ color: oklch(57.0% 0.146 267.3);
Tailwind
colors: {
  custom: {
    50: '#8c99dd',
    500: '#5171cd',
    950: '#000000',
  },
}
SCSS
$custom: #5171cd;
$custom-light: #8c99dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5171cd",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 224.516,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57022,
    "c": 0.14637,
    "h": 267.3
  },
  "luminance": 0.17967
}

Semantic roles & 50–950 ramp

primary
#5171CD
secondary
#D7C9A3
accent
#B849DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5171CD

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

Preview Lab → · Contrast checker → · Palette generator →

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