#5165D5#5165D5

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

Color values

HEX#5165D5
RGBrgb(81, 101, 213)
HSLhsl(231, 61%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62%, 52.6%, 0%, 16.5%)
CIE-LABlab(46.79, 27.02, -60.10)
CIE-LCHlch(46.79, 65.89, 294.21°)
OKLaboklab(55.16% 0.0058 -0.1724)
OKLCHoklch(55.16% 0.172 271.9)
XYZxyz(20.0533, 15.8591, 64.9422)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165D5 #D5C151
analogous
#51A7D5 #5165D5 #7F51D5
triadic
#5165D5 #D55165 #65D551
tetradic
#5165D5 #D551A7 #D5C151 #51D57F
square
#5165D5 #D551A7 #D5C151 #51D57F
split-complementary
#5165D5 #D57F51 #A7D551
monochromatic
#21318A #2D43BC #5165D5 #8291E1 #B4BCED

Accessibility & contrast

On white

5.03
#5165D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5165D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165D5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165D5#FFFFFF#000000##FFFFFF
##5165D51.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E75D9
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#007F93
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5165d5;
/* rgb */ color: rgb(81, 101, 213);
/* oklch */ color: oklch(55.2% 0.172 271.9);
Tailwind
colors: {
  custom: {
    50: '#8e90e3',
    500: '#5165d5',
    950: '#000000',
  },
}
SCSS
$custom: #5165d5;
$custom-light: #8e90e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5165d5",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 213
  },
  "hsl": {
    "h": 230.909,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55158,
    "c": 0.17247,
    "h": 271.9
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#5165D5
secondary
#DBD3A6
accent
#CC44E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #5165D5

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

Preview Lab → · Contrast checker → · Palette generator →

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