#5172D2#5172D2

#5172D2 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.6% C 0.152 H 267.3°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5172D2
RGBrgb(81, 114, 210)
HSLhsl(225, 59%, 57%)
HSVhsv(225, 61%, 82%)
CMYKcmyk(61.4%, 45.7%, 0%, 17.6%)
CIE-LABlab(50.02, 17.89, -53.19)
CIE-LCHlch(50.02, 56.12, 288.59°)
OKLaboklab(57.55% -0.0073 -0.1519)
OKLCHoklch(57.55% 0.152 267.3)
XYZxyz(21.0395, 18.4353, 63.4099)
Luminance0.1844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172D2 #D2B151
analogous
#51B3D2 #5172D2 #7151D2
triadic
#5172D2 #D25172 #72D251
tetradic
#5172D2 #D251B3 #D2B151 #51D271
square
#5172D2 #D251B3 #D2B151 #51D271
split-complementary
#5172D2 #D27151 #B3D251
monochromatic
#233C86 #2F52B7 #5172D2 #8299DF #B2C1EB

Accessibility & contrast

On white

4.48
#5172D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#5172D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172D2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172D2#FFFFFF#000000##000000
##5172D21.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#447DD6
Deuteranopia (green-blind)
#2F72D0
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5172d2;
/* rgb */ color: rgb(81, 114, 210);
/* oklch */ color: oklch(57.6% 0.152 267.3);
Tailwind
colors: {
  custom: {
    50: '#8d9ae0',
    500: '#5172d2',
    950: '#000000',
  },
}
SCSS
$custom: #5172d2;
$custom-light: #8d9ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#5172d2",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 210
  },
  "hsl": {
    "h": 224.651,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5755,
    "c": 0.15207,
    "h": 267.3
  },
  "luminance": 0.18437
}

Semantic roles & 50–950 ramp

primary
#5172D2
secondary
#DACCA5
accent
#BA46E2
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172D2

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

Preview Lab → · Contrast checker → · Palette generator →

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