#5172D5#5172D5

#5172D5 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.7% C 0.156 H 267.5°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5172D5
RGBrgb(81, 114, 213)
HSLhsl(225, 61%, 58%)
HSVhsv(225, 62%, 84%)
CMYKcmyk(62%, 46.5%, 0%, 16.5%)
CIE-LABlab(50.20, 18.92, -54.61)
CIE-LCHlch(50.20, 57.79, 289.11°)
OKLaboklab(57.75% -0.0068 -0.1561)
OKLCHoklch(57.75% 0.156 267.5)
XYZxyz(21.4168, 18.5862, 65.3967)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172D5 #D5B451
analogous
#51B4D5 #5172D5 #7251D5
triadic
#5172D5 #D55172 #72D551
tetradic
#5172D5 #D551B4 #D5B451 #51D572
square
#5172D5 #D551B4 #D5B451 #51D572
split-complementary
#5172D5 #D57251 #B4D551
monochromatic
#213C8A #2D51BC #5172D5 #829AE1 #B4C2ED

Accessibility & contrast

On white

4.45
#5172D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#5172D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172D5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172D5#FFFFFF#000000##000000
##5172D51.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#417ED9
Deuteranopia (green-blind)
#2A72D3
Tritanopia (blue-blind)
#008999
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5172d5;
/* rgb */ color: rgb(81, 114, 213);
/* oklch */ color: oklch(57.7% 0.156 267.5);
Tailwind
colors: {
  custom: {
    50: '#8e9ae2',
    500: '#5172d5',
    950: '#000000',
  },
}
SCSS
$custom: #5172d5;
$custom-light: #8e9ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5172d5",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 213
  },
  "hsl": {
    "h": 225,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57745,
    "c": 0.15621,
    "h": 267.5
  },
  "luminance": 0.18588
}

Semantic roles & 50–950 ramp

primary
#5172D5
secondary
#DBCEA6
accent
#BC44E4
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172D5

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

Preview Lab → · Contrast checker → · Palette generator →

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