#5172EA#5172EA

#5172EA is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.185 H 268.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5172EA
RGBrgb(81, 114, 234)
HSLhsl(227, 78%, 62%)
HSVhsv(227, 65%, 92%)
CMYKcmyk(65.4%, 51.3%, 0%, 8.2%)
CIE-LABlab(51.52, 26.11, -64.32)
CIE-LCHlch(51.52, 69.42, 292.10°)
OKLaboklab(59.17% -0.0044 -0.1846)
OKLCHoklch(59.17% 0.185 268.6)
XYZxyz(24.2569, 19.7222, 80.3544)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172EA #EAC951
analogous
#51BFEA #5172EA #7D51EA
triadic
#5172EA #EA5172 #72EA51
tetradic
#5172EA #EA51BF #EAC951 #51EA7D
square
#5172EA #EA51BF #EAC951 #51EA7D
split-complementary
#5172EA #EA7D51 #BFEA51
monochromatic
#1535AC #1B46E2 #5172EA #889EF1 #BECBF7

Accessibility & contrast

On white

4.25
#5172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172EA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172EA#FFFFFF#000000##000000
##5172EA1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2882EE
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5172ea;
/* rgb */ color: rgb(81, 114, 234);
/* oklch */ color: oklch(59.2% 0.185 268.6);
Tailwind
colors: {
  custom: {
    50: '#919af1',
    500: '#5172ea',
    950: '#000000',
  },
}
SCSS
$custom: #5172ea;
$custom-light: #919af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5172ea",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 227.059,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59174,
    "c": 0.18469,
    "h": 268.6
  },
  "luminance": 0.19724
}

Semantic roles & 50–950 ramp

primary
#5172EA
secondary
#E8DCAF
accent
#AE0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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