#5170DA#5170DA

#5170DA is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.7% C 0.166 H 268.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5170DA
RGBrgb(81, 112, 218)
HSLhsl(226, 65%, 59%)
HSVhsv(226, 63%, 85%)
CMYKcmyk(62.8%, 48.6%, 0%, 14.5%)
CIE-LABlab(49.98, 21.87, -57.80)
CIE-LCHlch(49.98, 61.80, 290.72°)
OKLaboklab(57.67% -0.0042 -0.1655)
OKLCHoklch(57.67% 0.166 268.5)
XYZxyz(21.8381, 18.3977, 68.7163)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170DA #DABB51
analogous
#51B5DA #5170DA #7651DA
triadic
#5170DA #DA5170 #70DA51
tetradic
#5170DA #DA51B5 #DABB51 #51DA76
square
#5170DA #DA51B5 #DABB51 #51DA76
split-complementary
#5170DA #DA7651 #B5DA51
monochromatic
#1F3992 #2A4DC4 #5170DA #8399E5 #B6C3EF

Accessibility & contrast

On white

4.49
#5170DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5170DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170DA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170DA#FFFFFF#000000##000000
##5170DA1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#387DDE
Deuteranopia (green-blind)
#1971D8
Tritanopia (blue-blind)
#00889B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5170da;
/* rgb */ color: rgb(81, 112, 218);
/* oklch */ color: oklch(57.7% 0.166 268.5);
Tailwind
colors: {
  custom: {
    50: '#8f98e6',
    500: '#5170da',
    950: '#000000',
  },
}
SCSS
$custom: #5170da;
$custom-light: #8f98e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5170da",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 218
  },
  "hsl": {
    "h": 226.423,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57673,
    "c": 0.16554,
    "h": 268.5
  },
  "luminance": 0.184
}

Semantic roles & 50–950 ramp

primary
#5170DA
secondary
#DED2A8
accent
#C240E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #5170DA

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

Preview Lab → · Contrast checker → · Palette generator →

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