#5172E8#5172E8

#5172E8 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.0% C 0.182 H 268.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5172E8
RGBrgb(81, 114, 232)
HSLhsl(227, 77%, 61%)
HSVhsv(227, 65%, 91%)
CMYKcmyk(65.1%, 50.9%, 0%, 9%)
CIE-LABlab(51.39, 25.42, -63.41)
CIE-LCHlch(51.39, 68.32, 291.85°)
OKLaboklab(59.03% -0.0046 -0.182)
OKLCHoklch(59.03% 0.182 268.5)
XYZxyz(23.9712, 19.6079, 78.8497)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172E8 #E8C751
analogous
#51BEE8 #5172E8 #7C51E8
triadic
#5172E8 #E85172 #72E851
tetradic
#5172E8 #E851BE #E8C751 #51E87C
square
#5172E8 #E851BE #E8C751 #51E87C
split-complementary
#5172E8 #E87C51 #BEE851
monochromatic
#1636A8 #1D48DE #5172E8 #879EEF #BDCAF6

Accessibility & contrast

On white

4.27
#5172E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5172E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172E8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172E8#FFFFFF#000000##000000
##5172E81.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B82EC
Deuteranopia (green-blind)
#0074E6
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5172e8;
/* rgb */ color: rgb(81, 114, 232);
/* oklch */ color: oklch(59.0% 0.182 268.5);
Tailwind
colors: {
  custom: {
    50: '#919af0',
    500: '#5172e8',
    950: '#000000',
  },
}
SCSS
$custom: #5172e8;
$custom-light: #919af0;
$custom-dark: #000000;
JSON
{
  "hex": "#5172e8",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 232
  },
  "hsl": {
    "h": 226.887,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59033,
    "c": 0.18202,
    "h": 268.5
  },
  "luminance": 0.1961
}

Semantic roles & 50–950 ramp

primary
#5172E8
secondary
#E7DAAE
accent
#AC0DD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5172E8

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

Preview Lab → · Contrast checker → · Palette generator →

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