#5170CF#5170CF

#5170CF is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.9% C 0.150 H 267.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5170CF
RGBrgb(81, 112, 207)
HSLhsl(225, 57%, 56%)
HSVhsv(225, 61%, 81%)
CMYKcmyk(60.9%, 45.9%, 0%, 18.8%)
CIE-LABlab(49.30, 18.11, -52.63)
CIE-LCHlch(49.30, 55.66, 288.99°)
OKLaboklab(56.94% -0.0057 -0.1503)
OKLCHoklch(56.94% 0.15 267.8)
XYZxyz(20.4462, 17.8409, 61.3856)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170CF #CFB051
analogous
#51AFCF #5170CF #7151CF
triadic
#5170CF #CF5170 #70CF51
tetradic
#5170CF #CF51AF #CFB051 #51CF71
square
#5170CF #CF51AF #CFB051 #51CF71
split-complementary
#5170CF #CF7151 #AFCF51
monochromatic
#243B82 #3151B2 #5170CF #8197DC #B1BFE9

Accessibility & contrast

On white

4.60
#5170CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5170CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5170CF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170CF#FFFFFF#000000##FFFFFF
##5170CF1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#427BD3
Deuteranopia (green-blind)
#2E70CD
Tritanopia (blue-blind)
#008595
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5170cf;
/* rgb */ color: rgb(81, 112, 207);
/* oklch */ color: oklch(56.9% 0.150 267.8);
Tailwind
colors: {
  custom: {
    50: '#8d98de',
    500: '#5170cf',
    950: '#000000',
  },
}
SCSS
$custom: #5170cf;
$custom-light: #8d98de;
$custom-dark: #000000;
JSON
{
  "hex": "#5170cf",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 207
  },
  "hsl": {
    "h": 225.238,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56944,
    "c": 0.15039,
    "h": 267.8
  },
  "luminance": 0.17843
}

Semantic roles & 50–950 ramp

primary
#5170CF
secondary
#D8CBA4
accent
#BB48E0
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5170CF

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

Preview Lab → · Contrast checker → · Palette generator →

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