#5172CE#5172CE

#5172CE is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.3% C 0.147 H 266.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5172CE
RGBrgb(81, 114, 206)
HSLhsl(224, 56%, 56%)
HSVhsv(224, 61%, 81%)
CMYKcmyk(60.7%, 44.7%, 0%, 19.2%)
CIE-LABlab(49.78, 16.53, -51.29)
CIE-LCHlch(49.78, 53.89, 287.87°)
OKLaboklab(57.29% -0.0079 -0.1463)
OKLCHoklch(57.29% 0.147 266.9)
XYZxyz(20.5474, 18.2384, 60.8181)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172CE #CEAD51
analogous
#51B1CE #5172CE #6F51CE
triadic
#5172CE #CE5172 #72CE51
tetradic
#5172CE #CE51B1 #CEAD51 #51CE6F
square
#5172CE #CE51B1 #CEAD51 #51CE6F
split-complementary
#5172CE #CE6F51 #B1CE51
monochromatic
#243D80 #3253B0 #5172CE #8199DB #B1BFE9

Accessibility & contrast

On white

4.52
#5172CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5172CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172CE
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172CE#FFFFFF#000000##000000
##5172CE1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#477CD1
Deuteranopia (green-blind)
#3471CC
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5172ce;
/* rgb */ color: rgb(81, 114, 206);
/* oklch */ color: oklch(57.3% 0.147 266.9);
Tailwind
colors: {
  custom: {
    50: '#8c9add',
    500: '#5172ce',
    950: '#000000',
  },
}
SCSS
$custom: #5172ce;
$custom-light: #8c9add;
$custom-dark: #000000;
JSON
{
  "hex": "#5172ce",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 206
  },
  "hsl": {
    "h": 224.16,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57293,
    "c": 0.14653,
    "h": 266.9
  },
  "luminance": 0.1824
}

Semantic roles & 50–950 ramp

primary
#5172CE
secondary
#D7CAA4
accent
#B848DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172CE

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

Preview Lab → · Contrast checker → · Palette generator →

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