#5172EB#5172EB

#5172EB is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.2% C 0.186 H 268.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5172EB
RGBrgb(81, 114, 235)
HSLhsl(227, 79%, 62%)
HSVhsv(227, 66%, 92%)
CMYKcmyk(65.5%, 51.5%, 0%, 7.8%)
CIE-LABlab(51.59, 26.45, -64.77)
CIE-LCHlch(51.59, 69.97, 292.22°)
OKLaboklab(59.24% -0.0043 -0.186)
OKLCHoklch(59.24% 0.186 268.7)
XYZxyz(24.4009, 19.7798, 81.1131)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172EB #EBCA51
analogous
#51BFEB #5172EB #7D51EB
triadic
#5172EB #EB5172 #72EB51
tetradic
#5172EB #EB51BF #EBCA51 #51EB7D
square
#5172EB #EB51BF #EBCA51 #51EB7D
split-complementary
#5172EB #EB7D51 #BFEB51
monochromatic
#1435AE #1A46E5 #5172EB #889EF1 #BFCBF8

Accessibility & contrast

On white

4.24
#5172EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5172EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172EB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172EB#FFFFFF#000000##000000
##5172EB1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2682EF
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5172eb;
/* rgb */ color: rgb(81, 114, 235);
/* oklch */ color: oklch(59.2% 0.186 268.7);
Tailwind
colors: {
  custom: {
    50: '#919af2',
    500: '#5172eb',
    950: '#000000',
  },
}
SCSS
$custom: #5172eb;
$custom-light: #919af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5172eb",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 227.143,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59244,
    "c": 0.18602,
    "h": 268.7
  },
  "luminance": 0.19782
}

Semantic roles & 50–950 ramp

primary
#5172EB
secondary
#E8DCB0
accent
#AF0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5172EB

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

Preview Lab → · Contrast checker → · Palette generator →

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