#5172CD#5172CD

#5172CD is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.2% C 0.145 H 266.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5172CD
RGBrgb(81, 114, 205)
HSLhsl(224, 55%, 56%)
HSVhsv(224, 60%, 80%)
CMYKcmyk(60.5%, 44.4%, 0%, 19.6%)
CIE-LABlab(49.73, 16.19, -50.81)
CIE-LCHlch(49.73, 53.33, 287.68°)
OKLaboklab(57.23% -0.008 -0.1449)
OKLCHoklch(57.23% 0.145 266.8)
XYZxyz(20.4263, 18.1900, 60.1804)
Luminance0.1819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172CD #CDAC51
analogous
#51B0CD #5172CD #6E51CD
triadic
#5172CD #CD5172 #72CD51
tetradic
#5172CD #CD51B0 #CDAC51 #51CD6E
square
#5172CD #CD51B0 #CDAC51 #51CD6E
split-complementary
#5172CD #CD6E51 #B0CD51
monochromatic
#253D7F #3253AF #5172CD #8199DB #B0BFE8

Accessibility & contrast

On white

4.53
#5172CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#5172CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172CD
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172CD#FFFFFF#000000##000000
##5172CD1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#487CD0
Deuteranopia (green-blind)
#3571CB
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5172cd;
/* rgb */ color: rgb(81, 114, 205);
/* oklch */ color: oklch(57.2% 0.145 266.8);
Tailwind
colors: {
  custom: {
    50: '#8c9add',
    500: '#5172cd',
    950: '#000000',
  },
}
SCSS
$custom: #5172cd;
$custom-light: #8c9add;
$custom-dark: #000000;
JSON
{
  "hex": "#5172cd",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 224.032,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5723,
    "c": 0.14513,
    "h": 266.8
  },
  "luminance": 0.18192
}

Semantic roles & 50–950 ramp

primary
#5172CD
secondary
#D7C9A3
accent
#B749DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172CD

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

Preview Lab → · Contrast checker → · Palette generator →

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