#5172DB#5172DB

#5172DB is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.1% C 0.164 H 267.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5172DB
RGBrgb(81, 114, 219)
HSLhsl(226, 66%, 59%)
HSVhsv(226, 63%, 86%)
CMYKcmyk(63%, 47.9%, 0%, 14.1%)
CIE-LABlab(50.57, 20.97, -57.42)
CIE-LCHlch(50.57, 61.13, 290.06°)
OKLaboklab(58.14% -0.006 -0.1643)
OKLCHoklch(58.14% 0.164 267.9)
XYZxyz(22.1925, 18.8965, 69.4820)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172DB #DBBA51
analogous
#51B7DB #5172DB #7551DB
triadic
#5172DB #DB5172 #72DB51
tetradic
#5172DB #DB51B7 #DBBA51 #51DB75
square
#5172DB #DB51B7 #DBBA51 #51DB75
split-complementary
#5172DB #DB7551 #B7DB51
monochromatic
#1E3A93 #294EC6 #5172DB #849BE5 #B6C4F0

Accessibility & contrast

On white

4.39
#5172DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5172DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172DB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172DB#FFFFFF#000000##000000
##5172DB1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7FDF
Deuteranopia (green-blind)
#1F72D9
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5172db;
/* rgb */ color: rgb(81, 114, 219);
/* oklch */ color: oklch(58.1% 0.164 267.9);
Tailwind
colors: {
  custom: {
    50: '#8f9ae7',
    500: '#5172db',
    950: '#000000',
  },
}
SCSS
$custom: #5172db;
$custom-light: #8f9ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5172db",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 225.652,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58142,
    "c": 0.16444,
    "h": 267.9
  },
  "luminance": 0.18898
}

Semantic roles & 50–950 ramp

primary
#5172DB
secondary
#DFD2A9
accent
#C03FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5172DB

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

Preview Lab → · Contrast checker → · Palette generator →

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