#5170DB#5170DB

#5170DB is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.7% C 0.167 H 268.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5170DB
RGBrgb(81, 112, 219)
HSLhsl(227, 66%, 59%)
HSVhsv(227, 63%, 86%)
CMYKcmyk(63%, 48.9%, 0%, 14.1%)
CIE-LABlab(50.04, 22.21, -58.27)
CIE-LCHlch(50.04, 62.36, 290.86°)
OKLaboklab(57.74% -0.0041 -0.1669)
OKLCHoklch(57.74% 0.167 268.6)
XYZxyz(21.9693, 18.4502, 69.4076)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170DB #DBBC51
analogous
#51B5DB #5170DB #7751DB
triadic
#5170DB #DB5170 #70DB51
tetradic
#5170DB #DB51B5 #DBBC51 #51DB77
square
#5170DB #DB51B5 #DBBC51 #51DB77
split-complementary
#5170DB #DB7751 #B5DB51
monochromatic
#1E3993 #294CC6 #5170DB #849AE5 #B6C3F0

Accessibility & contrast

On white

4.48
#5170DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#5170DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170DB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170DB#FFFFFF#000000##000000
##5170DB1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EDF
Deuteranopia (green-blind)
#1671D9
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5170db;
/* rgb */ color: rgb(81, 112, 219);
/* oklch */ color: oklch(57.7% 0.167 268.6);
Tailwind
colors: {
  custom: {
    50: '#8f98e7',
    500: '#5170db',
    950: '#000000',
  },
}
SCSS
$custom: #5170db;
$custom-light: #8f98e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5170db",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 226.522,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5774,
    "c": 0.16691,
    "h": 268.6
  },
  "luminance": 0.18452
}

Semantic roles & 50–950 ramp

primary
#5170DB
secondary
#DFD3A9
accent
#C33FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5170DB

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

Preview Lab → · Contrast checker → · Palette generator →

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