#5164D6#5164D6

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

Color values

HEX#5164D6
RGBrgb(81, 100, 214)
HSLhsl(231, 62%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62.1%, 53.3%, 0%, 16.1%)
CIE-LABlab(46.60, 27.98, -60.97)
CIE-LCHlch(46.60, 67.08, 294.65°)
OKLaboklab(55.04% 0.0068 -0.175)
OKLCHoklch(55.04% 0.175 272.2)
XYZxyz(20.0841, 15.7170, 65.5806)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164D6 #D6C351
analogous
#51A6D6 #5164D6 #8151D6
triadic
#5164D6 #D65164 #64D651
tetradic
#5164D6 #D651A6 #D6C351 #51D681
square
#5164D6 #D651A6 #D6C351 #51D681
split-complementary
#5164D6 #D68151 #A6D651
monochromatic
#21308C #2D41BD #5164D6 #8390E2 #B4BCED

Accessibility & contrast

On white

5.07
#5164D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5164D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164D6
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164D6#FFFFFF#000000##FFFFFF
##5164D61.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)
#1875DA
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#007F93
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5164d6;
/* rgb */ color: rgb(81, 100, 214);
/* oklch */ color: oklch(55.0% 0.175 272.2);
Tailwind
colors: {
  custom: {
    50: '#8e8fe3',
    500: '#5164d6',
    950: '#000000',
  },
}
SCSS
$custom: #5164d6;
$custom-light: #8e8fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#5164d6",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 214
  },
  "hsl": {
    "h": 231.429,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55038,
    "c": 0.17509,
    "h": 272.2
  },
  "luminance": 0.15719
}

Semantic roles & 50–950 ramp

primary
#5164D6
secondary
#DCD4A7
accent
#CE43E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #5164D6

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

Preview Lab → · Contrast checker → · Palette generator →

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