#5165D7#5165D7

#5165D7 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.3% C 0.175 H 272.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5165D7
RGBrgb(81, 101, 215)
HSLhsl(231, 63%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62.3%, 53%, 0%, 15.7%)
CIE-LABlab(46.92, 27.69, -61.02)
CIE-LCHlch(46.92, 67.01, 294.41°)
OKLaboklab(55.3% 0.006 -0.1751)
OKLCHoklch(55.3% 0.175 272)
XYZxyz(20.3087, 15.9613, 66.2874)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165D7 #D7C351
analogous
#51A8D7 #5165D7 #8051D7
triadic
#5165D7 #D75165 #65D751
tetradic
#5165D7 #D751A8 #D7C351 #51D780
square
#5165D7 #D751A8 #D7C351 #51D780
split-complementary
#5165D7 #D78051 #A8D751
monochromatic
#20318D #2C42BF #5165D7 #8391E2 #B5BDEE

Accessibility & contrast

On white

5.01
#5165D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5165D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165D7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165D7#FFFFFF#000000##FFFFFF
##5165D71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A75DB
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#008094
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5165d7;
/* rgb */ color: rgb(81, 101, 215);
/* oklch */ color: oklch(55.3% 0.175 272.0);
Tailwind
colors: {
  custom: {
    50: '#8f90e4',
    500: '#5165d7',
    950: '#000000',
  },
}
SCSS
$custom: #5165d7;
$custom-light: #8f90e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5165d7",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 215
  },
  "hsl": {
    "h": 231.045,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55302,
    "c": 0.17519,
    "h": 272
  },
  "luminance": 0.15963
}

Semantic roles & 50–950 ramp

primary
#5165D7
secondary
#DDD5A7
accent
#CD42E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5165D7

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

Preview Lab → · Contrast checker → · Palette generator →

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