#5172DE#5172DE

#5172DE is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.3% C 0.169 H 268.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5172DE
RGBrgb(81, 114, 222)
HSLhsl(226, 68%, 59%)
HSVhsv(226, 64%, 87%)
CMYKcmyk(63.5%, 48.6%, 0%, 12.9%)
CIE-LABlab(50.75, 21.99, -58.81)
CIE-LCHlch(50.75, 62.79, 290.50°)
OKLaboklab(58.34% -0.0057 -0.1684)
OKLCHoklch(58.34% 0.169 268.1)
XYZxyz(22.5910, 19.0559, 71.5807)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172DE #DEBD51
analogous
#51B9DE #5172DE #7651DE
triadic
#5172DE #DE5172 #72DE51
tetradic
#5172DE #DE51B9 #DEBD51 #51DE76
square
#5172DE #DE51B9 #DEBD51 #51DE76
split-complementary
#5172DE #DE7651 #B9DE51
monochromatic
#1D3A98 #274DCB #5172DE #849CE8 #B8C5F2

Accessibility & contrast

On white

4.36
#5172DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5172DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172DE
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172DE#FFFFFF#000000##000000
##5172DE1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3880E2
Deuteranopia (green-blind)
#1773DC
Tritanopia (blue-blind)
#008B9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5172de;
/* rgb */ color: rgb(81, 114, 222);
/* oklch */ color: oklch(58.3% 0.169 268.1);
Tailwind
colors: {
  custom: {
    50: '#8f9ae9',
    500: '#5172de',
    950: '#000000',
  },
}
SCSS
$custom: #5172de;
$custom-light: #8f9ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#5172de",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 222
  },
  "hsl": {
    "h": 225.957,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58344,
    "c": 0.16853,
    "h": 268.1
  },
  "luminance": 0.19058
}

Semantic roles & 50–950 ramp

primary
#5172DE
secondary
#E1D4AA
accent
#C23DEB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5172DE

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

Preview Lab → · Contrast checker → · Palette generator →

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