#5172CF#5172CF

#5172CF is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.4% C 0.148 H 267.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5172CF
RGBrgb(81, 114, 207)
HSLhsl(224, 57%, 56%)
HSVhsv(224, 61%, 81%)
CMYKcmyk(60.9%, 44.9%, 0%, 18.8%)
CIE-LABlab(49.84, 16.87, -51.77)
CIE-LCHlch(49.84, 54.45, 288.05°)
OKLaboklab(57.36% -0.0077 -0.1477)
OKLCHoklch(57.36% 0.148 267)
XYZxyz(20.6693, 18.2872, 61.4599)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172CF #CFAE51
analogous
#51B1CF #5172CF #6F51CF
triadic
#5172CF #CF5172 #72CF51
tetradic
#5172CF #CF51B1 #CFAE51 #51CF6F
square
#5172CF #CF51B1 #CFAE51 #51CF6F
split-complementary
#5172CF #CF6F51 #B1CF51
monochromatic
#243C82 #3153B2 #5172CF #8199DC #B1C0E9

Accessibility & contrast

On white

4.51
#5172CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#5172CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172CF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172CF#FFFFFF#000000##000000
##5172CF1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#467DD3
Deuteranopia (green-blind)
#3371CD
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5172cf;
/* rgb */ color: rgb(81, 114, 207);
/* oklch */ color: oklch(57.4% 0.148 267.0);
Tailwind
colors: {
  custom: {
    50: '#8d9ade',
    500: '#5172cf',
    950: '#000000',
  },
}
SCSS
$custom: #5172cf;
$custom-light: #8d9ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5172cf",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 224.286,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57357,
    "c": 0.14792,
    "h": 267
  },
  "luminance": 0.18289
}

Semantic roles & 50–950 ramp

primary
#5172CF
secondary
#D8CAA4
accent
#B848E0
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172CF

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

Preview Lab → · Contrast checker → · Palette generator →

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