#5170CC#5170CC

#5170CC is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.8% C 0.146 H 267.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5170CC
RGBrgb(81, 112, 204)
HSLhsl(225, 55%, 56%)
HSVhsv(225, 60%, 80%)
CMYKcmyk(60.3%, 45.1%, 0%, 20%)
CIE-LABlab(49.12, 17.10, -51.20)
CIE-LCHlch(49.12, 53.98, 288.46°)
OKLaboklab(56.75% -0.0061 -0.1461)
OKLCHoklch(56.75% 0.146 267.6)
XYZxyz(20.0829, 17.6956, 59.4723)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170CC #CCAD51
analogous
#51ADCC #5170CC #6F51CC
triadic
#5170CC #CC5170 #70CC51
tetradic
#5170CC #CC51AD #CCAD51 #51CC6F
square
#5170CC #CC51AD #CCAD51 #51CC6F
split-complementary
#5170CC #CC6F51 #ADCC51
monochromatic
#253B7E #3352AD #5170CC #8097DA #B0BEE8

Accessibility & contrast

On white

4.63
#5170CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5170CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5170CC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170CC#FFFFFF#000000##FFFFFF
##5170CC1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#457BCF
Deuteranopia (green-blind)
#3270CA
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5170cc;
/* rgb */ color: rgb(81, 112, 204);
/* oklch */ color: oklch(56.8% 0.146 267.6);
Tailwind
colors: {
  custom: {
    50: '#8c98dc',
    500: '#5170cc',
    950: '#000000',
  },
}
SCSS
$custom: #5170cc;
$custom-light: #8c98dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5170cc",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 204
  },
  "hsl": {
    "h": 224.878,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5675,
    "c": 0.14621,
    "h": 267.6
  },
  "luminance": 0.17697
}

Semantic roles & 50–950 ramp

primary
#5170CC
secondary
#D6C9A3
accent
#B94ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5170CC

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

Preview Lab → · Contrast checker → · Palette generator →

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