#5164D7#5164D7

#5164D7 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.1% C 0.176 H 272.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5164D7
RGBrgb(81, 100, 215)
HSLhsl(231, 63%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62.3%, 53.5%, 0%, 15.7%)
CIE-LABlab(46.67, 28.32, -61.43)
CIE-LCHlch(46.67, 67.64, 294.75°)
OKLaboklab(55.11% 0.0069 -0.1763)
OKLCHoklch(55.11% 0.176 272.2)
XYZxyz(20.2122, 15.7683, 66.2552)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164D7 #D7C451
analogous
#51A7D7 #5164D7 #8151D7
triadic
#5164D7 #D75164 #64D751
tetradic
#5164D7 #D751A7 #D7C451 #51D781
square
#5164D7 #D751A7 #D7C451 #51D781
split-complementary
#5164D7 #D78151 #A7D751
monochromatic
#20308D #2C41BF #5164D7 #8390E2 #B5BDEE

Accessibility & contrast

On white

5.06
#5164D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5164D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164D7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164D7#FFFFFF#000000##FFFFFF
##5164D71.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)
#1575DB
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#007F94
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5164d7;
/* rgb */ color: rgb(81, 100, 215);
/* oklch */ color: oklch(55.1% 0.176 272.2);
Tailwind
colors: {
  custom: {
    50: '#8f8fe4',
    500: '#5164d7',
    950: '#000000',
  },
}
SCSS
$custom: #5164d7;
$custom-light: #8f8fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5164d7",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 215
  },
  "hsl": {
    "h": 231.493,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55111,
    "c": 0.17644,
    "h": 272.2
  },
  "luminance": 0.1577
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5164D7

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

Preview Lab → · Contrast checker → · Palette generator →

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