#5172E9#5172E9

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

Color values

HEX#5172E9
RGBrgb(81, 114, 233)
HSLhsl(227, 78%, 62%)
HSVhsv(227, 65%, 91%)
CMYKcmyk(65.2%, 51.1%, 0%, 8.6%)
CIE-LABlab(51.46, 25.77, -63.87)
CIE-LCHlch(51.46, 68.87, 291.97°)
OKLaboklab(59.1% -0.0045 -0.1833)
OKLCHoklch(59.1% 0.183 268.6)
XYZxyz(24.1136, 19.6649, 79.5999)
Luminance0.1967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172E9 #E9C851
analogous
#51BEE9 #5172E9 #7C51E9
triadic
#5172E9 #E95172 #72E951
tetradic
#5172E9 #E951BE #E9C851 #51E97C
square
#5172E9 #E951BE #E9C851 #51E97C
split-complementary
#5172E9 #E97C51 #BEE951
monochromatic
#1636AA #1C47E0 #5172E9 #879EF0 #BECAF7

Accessibility & contrast

On white

4.26
#5172E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5172E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172E9
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172E9#FFFFFF#000000##000000
##5172E91.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A82ED
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#008EA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5172e9;
/* rgb */ color: rgb(81, 114, 233);
/* oklch */ color: oklch(59.1% 0.183 268.6);
Tailwind
colors: {
  custom: {
    50: '#919af1',
    500: '#5172e9',
    950: '#000000',
  },
}
SCSS
$custom: #5172e9;
$custom-light: #919af1;
$custom-dark: #000000;
JSON
{
  "hex": "#5172e9",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 233
  },
  "hsl": {
    "h": 226.974,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59103,
    "c": 0.18336,
    "h": 268.6
  },
  "luminance": 0.19667
}

Semantic roles & 50–950 ramp

primary
#5172E9
secondary
#E7DBAF
accent
#AD0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5172E9

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

Preview Lab → · Contrast checker → · Palette generator →

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