#5164D5#5164D5

#5164D5 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.0% C 0.174 H 272.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5164D5
RGBrgb(81, 100, 213)
HSLhsl(231, 61%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62%, 53.1%, 0%, 16.5%)
CIE-LABlab(46.53, 27.64, -60.51)
CIE-LCHlch(46.53, 66.52, 294.55°)
OKLaboklab(54.97% 0.0068 -0.1736)
OKLCHoklch(54.97% 0.174 272.2)
XYZxyz(19.9568, 15.6661, 64.9101)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164D5 #D5C251
analogous
#51A6D5 #5164D5 #8051D5
triadic
#5164D5 #D55164 #64D551
tetradic
#5164D5 #D551A6 #D5C251 #51D580
square
#5164D5 #D551A6 #D5C251 #51D580
split-complementary
#5164D5 #D58051 #A6D551
monochromatic
#21308A #2D42BC #5164D5 #8290E1 #B4BCED

Accessibility & contrast

On white

5.08
#5164D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5164D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164D5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164D5#FFFFFF#000000##FFFFFF
##5164D51.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A74D9
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#007E93
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5164d5;
/* rgb */ color: rgb(81, 100, 213);
/* oklch */ color: oklch(55.0% 0.174 272.2);
Tailwind
colors: {
  custom: {
    50: '#8e8fe3',
    500: '#5164d5',
    950: '#000000',
  },
}
SCSS
$custom: #5164d5;
$custom-light: #8e8fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#5164d5",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 213
  },
  "hsl": {
    "h": 231.364,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54966,
    "c": 0.17373,
    "h": 272.2
  },
  "luminance": 0.15668
}

Semantic roles & 50–950 ramp

primary
#5164D5
secondary
#DBD4A6
accent
#CD44E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #5164D5

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

Preview Lab → · Contrast checker → · Palette generator →

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