#5172CC#5172CC

#5172CC is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.2% C 0.144 H 266.7°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5172CC
RGBrgb(81, 114, 204)
HSLhsl(224, 55%, 56%)
HSVhsv(224, 60%, 80%)
CMYKcmyk(60.3%, 44.1%, 0%, 20%)
CIE-LABlab(49.67, 15.85, -50.33)
CIE-LCHlch(49.67, 52.77, 287.48°)
OKLaboklab(57.17% -0.0082 -0.1435)
OKLCHoklch(57.17% 0.144 266.7)
XYZxyz(20.3060, 18.1419, 59.5467)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172CC #CCAB51
analogous
#51B0CC #5172CC #6D51CC
triadic
#5172CC #CC5172 #72CC51
tetradic
#5172CC #CC51B0 #CCAB51 #51CC6D
square
#5172CC #CC51B0 #CCAB51 #51CC6D
split-complementary
#5172CC #CC6D51 #B0CC51
monochromatic
#253D7E #3354AD #5172CC #8098DA #B0BFE8

Accessibility & contrast

On white

4.54
#5172CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#5172CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172CC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172CC#FFFFFF#000000##000000
##5172CC1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#497CCF
Deuteranopia (green-blind)
#3671CA
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5172cc;
/* rgb */ color: rgb(81, 114, 204);
/* oklch */ color: oklch(57.2% 0.144 266.7);
Tailwind
colors: {
  custom: {
    50: '#8c9adc',
    500: '#5172cc',
    950: '#000000',
  },
}
SCSS
$custom: #5172cc;
$custom-light: #8c9adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5172cc",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 204
  },
  "hsl": {
    "h": 223.902,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57166,
    "c": 0.14375,
    "h": 266.7
  },
  "luminance": 0.18144
}

Semantic roles & 50–950 ramp

primary
#5172CC
secondary
#D6C8A3
accent
#B64ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172CC

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

Preview Lab → · Contrast checker → · Palette generator →

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