#5172DA#5172DA

#5172DA is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.1% C 0.163 H 267.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5172DA
RGBrgb(81, 114, 218)
HSLhsl(226, 65%, 59%)
HSVhsv(226, 63%, 85%)
CMYKcmyk(62.8%, 47.7%, 0%, 14.5%)
CIE-LABlab(50.50, 20.62, -56.95)
CIE-LCHlch(50.50, 60.57, 289.91°)
OKLaboklab(58.08% -0.0061 -0.163)
OKLCHoklch(58.08% 0.163 267.8)
XYZxyz(22.0612, 18.8440, 68.7907)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172DA #DAB951
analogous
#51B7DA #5172DA #7451DA
triadic
#5172DA #DA5172 #72DA51
tetradic
#5172DA #DA51B7 #DAB951 #51DA74
square
#5172DA #DA51B7 #DAB951 #51DA74
split-complementary
#5172DA #DA7451 #B7DA51
monochromatic
#1F3B92 #2A4FC4 #5172DA #839BE5 #B6C4EF

Accessibility & contrast

On white

4.40
#5172DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#5172DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172DA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172DA#FFFFFF#000000##000000
##5172DA1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7FDE
Deuteranopia (green-blind)
#2172D8
Tritanopia (blue-blind)
#008A9B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5172da;
/* rgb */ color: rgb(81, 114, 218);
/* oklch */ color: oklch(58.1% 0.163 267.8);
Tailwind
colors: {
  custom: {
    50: '#8e9ae6',
    500: '#5172da',
    950: '#000000',
  },
}
SCSS
$custom: #5172da;
$custom-light: #8e9ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5172da",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 218
  },
  "hsl": {
    "h": 225.547,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58075,
    "c": 0.16308,
    "h": 267.8
  },
  "luminance": 0.18846
}

Semantic roles & 50–950 ramp

primary
#5172DA
secondary
#DED1A8
accent
#BF40E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5172DA

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

Preview Lab → · Contrast checker → · Palette generator →

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