#5171BE#5171BE

#5171BE is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.1% C 0.125 H 265.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5171BE
RGBrgb(81, 113, 190)
HSLhsl(222, 46%, 53%)
HSVhsv(222, 57%, 75%)
CMYKcmyk(57.4%, 40.5%, 0%, 25.5%)
CIE-LABlab(48.61, 11.76, -43.99)
CIE-LCHlch(48.61, 45.54, 284.97°)
OKLaboklab(56.09% -0.0097 -0.1249)
OKLCHoklch(56.09% 0.125 265.5)
XYZxyz(18.5896, 17.2758, 51.0602)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171BE #BE9E51
analogous
#51A8BE #5171BE #6751BE
triadic
#5171BE #BE5171 #71BE51
tetradic
#5171BE #BE51A8 #BE9E51 #51BE67
square
#5171BE #BE51A8 #BE9E51 #51BE67
split-complementary
#5171BE #BE6751 #A8BE51
monochromatic
#283C6C #395599 #5171BE #7E95CF #AABADF

Accessibility & contrast

On white

4.71
#5171BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5171BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5171BE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171BE#FFFFFF#000000##FFFFFF
##5171BE1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5079C1
Deuteranopia (green-blind)
#426FBC
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5171be;
/* rgb */ color: rgb(81, 113, 190);
/* oklch */ color: oklch(56.1% 0.125 265.5);
Tailwind
colors: {
  custom: {
    50: '#8a99d2',
    500: '#5171be',
    950: '#000000',
  },
}
SCSS
$custom: #5171be;
$custom-light: #8a99d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5171be",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 222.385,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56094,
    "c": 0.12531,
    "h": 265.5
  },
  "luminance": 0.17277
}

Semantic roles & 50–950 ramp

primary
#5171BE
secondary
#CDBF9E
accent
#AF53D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5171BE

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

Preview Lab → · Contrast checker → · Palette generator →

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