#5169D5#5169D5

#5169D5 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.9% C 0.167 H 270.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5169D5
RGBrgb(81, 105, 213)
HSLhsl(229, 61%, 58%)
HSVhsv(229, 62%, 84%)
CMYKcmyk(62%, 50.7%, 0%, 16.5%)
CIE-LABlab(47.82, 24.52, -58.43)
CIE-LCHlch(47.82, 63.36, 292.76°)
OKLaboklab(55.94% 0.002 -0.1674)
OKLCHoklch(55.94% 0.167 270.7)
XYZxyz(20.4511, 16.6548, 65.0749)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5169D5 #D5BD51
analogous
#51ABD5 #5169D5 #7B51D5
triadic
#5169D5 #D55169 #69D551
tetradic
#5169D5 #D551AB #D5BD51 #51D57B
square
#5169D5 #D551AB #D5BD51 #51D57B
split-complementary
#5169D5 #D57B51 #ABD551
monochromatic
#21348A #2D47BC #5169D5 #8293E1 #B4BEED

Accessibility & contrast

On white

4.85
#5169D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5169D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5169D5
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5169D5#FFFFFF#000000##FFFFFF
##5169D51.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C78D9
Deuteranopia (green-blind)
#006CD3
Tritanopia (blue-blind)
#008295
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5169d5;
/* rgb */ color: rgb(81, 105, 213);
/* oklch */ color: oklch(55.9% 0.167 270.7);
Tailwind
colors: {
  custom: {
    50: '#8e93e3',
    500: '#5169d5',
    950: '#000000',
  },
}
SCSS
$custom: #5169d5;
$custom-light: #8e93e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5169d5",
  "rgb": {
    "r": 81,
    "g": 105,
    "b": 213
  },
  "hsl": {
    "h": 229.091,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55938,
    "c": 0.16743,
    "h": 270.7
  },
  "luminance": 0.16657
}

Semantic roles & 50–950 ramp

primary
#5169D5
secondary
#DBD2A6
accent
#C744E4
background
#F9F9FD
surface
#F2F1FB
border
#CCCBD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5169D5

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

Preview Lab → · Contrast checker → · Palette generator →

#5169D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva