#5165D2#5165D2

#5165D2 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.9% C 0.168 H 271.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5165D2
RGBrgb(81, 101, 210)
HSLhsl(231, 59%, 57%)
HSVhsv(231, 61%, 82%)
CMYKcmyk(61.4%, 51.9%, 0%, 17.6%)
CIE-LABlab(46.59, 26.00, -58.70)
CIE-LCHlch(46.59, 64.20, 293.89°)
OKLaboklab(54.94% 0.0056 -0.1683)
OKLCHoklch(54.94% 0.168 271.9)
XYZxyz(19.6760, 15.7082, 62.9554)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165D2 #D2BE51
analogous
#51A5D2 #5165D2 #7E51D2
triadic
#5165D2 #D25165 #65D251
tetradic
#5165D2 #D251A5 #D2BE51 #51D27E
square
#5165D2 #D251A5 #D2BE51 #51D27E
split-complementary
#5165D2 #D27E51 #A5D251
monochromatic
#233286 #2F44B7 #5165D2 #8290DF #B2BBEB

Accessibility & contrast

On white

5.07
#5165D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5165D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165D2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165D2#FFFFFF#000000##FFFFFF
##5165D21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2474D6
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#007E92
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5165d2;
/* rgb */ color: rgb(81, 101, 210);
/* oklch */ color: oklch(54.9% 0.168 271.9);
Tailwind
colors: {
  custom: {
    50: '#8e90e0',
    500: '#5165d2',
    950: '#000000',
  },
}
SCSS
$custom: #5165d2;
$custom-light: #8e90e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5165d2",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 210
  },
  "hsl": {
    "h": 230.698,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54944,
    "c": 0.16837,
    "h": 271.9
  },
  "luminance": 0.1571
}

Semantic roles & 50–950 ramp

primary
#5165D2
secondary
#DAD1A5
accent
#CA46E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5165D2

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

Preview Lab → · Contrast checker → · Palette generator →

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