#5165D3#5165D3

#5165D3 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.0% C 0.170 H 271.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5165D3
RGBrgb(81, 101, 211)
HSLhsl(231, 60%, 57%)
HSVhsv(231, 62%, 83%)
CMYKcmyk(61.6%, 52.1%, 0%, 17.3%)
CIE-LABlab(46.66, 26.34, -59.17)
CIE-LCHlch(46.66, 64.77, 294.00°)
OKLaboklab(55.02% 0.0057 -0.1696)
OKLCHoklch(55.02% 0.17 271.9)
XYZxyz(19.8010, 15.7582, 63.6136)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165D3 #D3BF51
analogous
#51A6D3 #5165D3 #7E51D3
triadic
#5165D3 #D35165 #65D351
tetradic
#5165D3 #D351A6 #D3BF51 #51D37E
square
#5165D3 #D351A6 #D3BF51 #51D37E
split-complementary
#5165D3 #D37E51 #A6D351
monochromatic
#223287 #2F44B8 #5165D3 #8290DF #B3BBEC

Accessibility & contrast

On white

5.06
#5165D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5165D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165D3
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165D3#FFFFFF#000000##FFFFFF
##5165D31.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2275D7
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#007F92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5165d3;
/* rgb */ color: rgb(81, 101, 211);
/* oklch */ color: oklch(55.0% 0.170 271.9);
Tailwind
colors: {
  custom: {
    50: '#8e90e1',
    500: '#5165d3',
    950: '#000000',
  },
}
SCSS
$custom: #5165d3;
$custom-light: #8e90e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5165d3",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 211
  },
  "hsl": {
    "h": 230.769,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55015,
    "c": 0.16975,
    "h": 271.9
  },
  "luminance": 0.1576
}

Semantic roles & 50–950 ramp

primary
#5165D3
secondary
#DAD2A6
accent
#CB45E3
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5165D3

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

Preview Lab → · Contrast checker → · Palette generator →

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