#5170DF#5170DF

#5170DF is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.0% C 0.172 H 268.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5170DF
RGBrgb(81, 112, 223)
HSLhsl(227, 69%, 60%)
HSVhsv(227, 64%, 87%)
CMYKcmyk(63.7%, 49.8%, 0%, 12.5%)
CIE-LABlab(50.29, 23.58, -60.12)
CIE-LCHlch(50.29, 64.58, 291.41°)
OKLaboklab(58.01% -0.0037 -0.1723)
OKLCHoklch(58.01% 0.172 268.8)
XYZxyz(22.5023, 18.6634, 72.2143)
Luminance0.1867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170DF #DFC051
analogous
#51B7DF #5170DF #7951DF
triadic
#5170DF #DF5170 #70DF51
tetradic
#5170DF #DF51B7 #DFC051 #51DF79
square
#5170DF #DF51B7 #DFC051 #51DF79
split-complementary
#5170DF #DF7951 #B7DF51
monochromatic
#1C3899 #264ACD #5170DF #859AE9 #B8C5F2

Accessibility & contrast

On white

4.44
#5170DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#5170DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170DF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170DF#FFFFFF#000000##000000
##5170DF1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#327EE3
Deuteranopia (green-blind)
#0572DD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5170df;
/* rgb */ color: rgb(81, 112, 223);
/* oklch */ color: oklch(58.0% 0.172 268.8);
Tailwind
colors: {
  custom: {
    50: '#8f98ea',
    500: '#5170df',
    950: '#000000',
  },
}
SCSS
$custom: #5170df;
$custom-light: #8f98ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5170df",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 223
  },
  "hsl": {
    "h": 226.901,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58014,
    "c": 0.17235,
    "h": 268.8
  },
  "luminance": 0.18665
}

Semantic roles & 50–950 ramp

primary
#5170DF
secondary
#E1D5AA
accent
#C53CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5170DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5170DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva