#5170BE#5170BE

#5170BE is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.127 H 266.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5170BE
RGBrgb(81, 112, 190)
HSLhsl(223, 46%, 53%)
HSVhsv(223, 57%, 75%)
CMYKcmyk(57.4%, 41.1%, 0%, 25.5%)
CIE-LABlab(48.33, 12.38, -44.44)
CIE-LCHlch(48.33, 46.13, 285.57°)
OKLaboklab(55.88% -0.0086 -0.1262)
OKLCHoklch(55.88% 0.127 266.1)
XYZxyz(18.4786, 17.0539, 51.0232)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170BE #BE9F51
analogous
#51A6BE #5170BE #6851BE
triadic
#5170BE #BE5170 #70BE51
tetradic
#5170BE #BE51A6 #BE9F51 #51BE68
square
#5170BE #BE51A6 #BE9F51 #51BE68
split-complementary
#5170BE #BE6851 #A6BE51
monochromatic
#283C6C #395499 #5170BE #7E95CF #AAB9DF

Accessibility & contrast

On white

4.76
#5170BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#5170BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5170BE
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170BE#FFFFFF#000000##FFFFFF
##5170BE1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F78C1
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#00818E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5170be;
/* rgb */ color: rgb(81, 112, 190);
/* oklch */ color: oklch(55.9% 0.127 266.1);
Tailwind
colors: {
  custom: {
    50: '#8a98d2',
    500: '#5170be',
    950: '#000000',
  },
}
SCSS
$custom: #5170be;
$custom-light: #8a98d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5170be",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 190
  },
  "hsl": {
    "h": 222.936,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5588,
    "c": 0.12653,
    "h": 266.1
  },
  "luminance": 0.17055
}

Semantic roles & 50–950 ramp

primary
#5170BE
secondary
#CDC09E
accent
#B053D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5170BE

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

Preview Lab → · Contrast checker → · Palette generator →

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