#5170BB#5170BB

#5170BB is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.7% C 0.122 H 265.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5170BB
RGBrgb(81, 112, 187)
HSLhsl(222, 44%, 53%)
HSVhsv(222, 57%, 73%)
CMYKcmyk(56.7%, 40.1%, 0%, 26.7%)
CIE-LABlab(48.16, 11.38, -42.96)
CIE-LCHlch(48.16, 44.44, 284.83°)
OKLaboklab(55.7% -0.0093 -0.1219)
OKLCHoklch(55.7% 0.122 265.7)
XYZxyz(18.1541, 16.9241, 49.3141)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170BB #BB9C51
analogous
#51A5BB #5170BB #6751BB
triadic
#5170BB #BB5170 #70BB51
tetradic
#5170BB #BB51A5 #BB9C51 #51BB67
square
#5170BB #BB51A5 #BB9C51 #51BB67
split-complementary
#5170BB #BB6751 #A5BB51
monochromatic
#293C69 #3A5595 #5170BB #7D94CC #A9B8DD

Accessibility & contrast

On white

4.79
#5170BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5170BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5170BB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170BB#FFFFFF#000000##FFFFFF
##5170BB1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5177BE
Deuteranopia (green-blind)
#436EB9
Tritanopia (blue-blind)
#07818C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5170bb;
/* rgb */ color: rgb(81, 112, 187);
/* oklch */ color: oklch(55.7% 0.122 265.7);
Tailwind
colors: {
  custom: {
    50: '#8a98d0',
    500: '#5170bb',
    950: '#000000',
  },
}
SCSS
$custom: #5170bb;
$custom-light: #8a98d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5170bb",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 187
  },
  "hsl": {
    "h": 222.453,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55701,
    "c": 0.12227,
    "h": 265.7
  },
  "luminance": 0.16926
}

Semantic roles & 50–950 ramp

primary
#5170BB
secondary
#CBBD9D
accent
#AE54D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5170BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5170BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva