#5165D6#5165D6

#5165D6 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.2% C 0.174 H 271.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5165D6
RGBrgb(81, 101, 214)
HSLhsl(231, 62%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62.1%, 52.8%, 0%, 16.1%)
CIE-LABlab(46.86, 27.36, -60.56)
CIE-LCHlch(46.86, 66.45, 294.31°)
OKLaboklab(55.23% 0.0059 -0.1737)
OKLCHoklch(55.23% 0.174 271.9)
XYZxyz(20.1806, 15.9100, 65.6128)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165D6 #D6C251
analogous
#51A8D6 #5165D6 #7F51D6
triadic
#5165D6 #D65165 #65D651
tetradic
#5165D6 #D651A8 #D6C251 #51D67F
square
#5165D6 #D651A8 #D6C251 #51D67F
split-complementary
#5165D6 #D67F51 #A8D651
monochromatic
#21318C #2D42BD #5165D6 #8391E2 #B4BDED

Accessibility & contrast

On white

5.02
#5165D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5165D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165D6
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165D6#FFFFFF#000000##FFFFFF
##5165D61.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C75DA
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#007F94
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5165d6;
/* rgb */ color: rgb(81, 101, 214);
/* oklch */ color: oklch(55.2% 0.174 271.9);
Tailwind
colors: {
  custom: {
    50: '#8e90e3',
    500: '#5165d6',
    950: '#000000',
  },
}
SCSS
$custom: #5165d6;
$custom-light: #8e90e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5165d6",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 214
  },
  "hsl": {
    "h": 230.977,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5523,
    "c": 0.17383,
    "h": 271.9
  },
  "luminance": 0.15912
}

Semantic roles & 50–950 ramp

primary
#5165D6
secondary
#DCD4A7
accent
#CD43E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #5165D6

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

Preview Lab → · Contrast checker → · Palette generator →

#5165D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva