#5164E6#5164E6

#5164E6 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 56.2% C 0.196 H 272.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5164E6
RGBrgb(81, 100, 230)
HSLhsl(232, 75%, 61%)
HSVhsv(232, 65%, 90%)
CMYKcmyk(64.8%, 56.5%, 0%, 9.8%)
CIE-LABlab(47.72, 33.40, -68.23)
CIE-LCHlch(47.72, 75.96, 296.08°)
OKLaboklab(56.23% 0.0075 -0.1963)
OKLCHoklch(56.23% 0.196 272.2)
XYZxyz(22.2287, 16.5749, 76.8754)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164E6 #E6D351
analogous
#51AEE6 #5164E6 #8851E6
triadic
#5164E6 #E65164 #64E651
tetradic
#5164E6 #E651AE #E6D351 #51E688
square
#5164E6 #E651AE #E6D351 #51E688
split-complementary
#5164E6 #E68851 #AEE651
monochromatic
#182AA5 #1F37DA #5164E6 #8794EE #BCC3F5

Accessibility & contrast

On white

4.87
#5164E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5164E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164E6
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164E6#FFFFFF#000000##FFFFFF
##5164E61.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#006BE3
Tritanopia (blue-blind)
#00849B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5164e6;
/* rgb */ color: rgb(81, 100, 230);
/* oklch */ color: oklch(56.2% 0.196 272.2);
Tailwind
colors: {
  custom: {
    50: '#9190ef',
    500: '#5164e6',
    950: '#000000',
  },
}
SCSS
$custom: #5164e6;
$custom-light: #9190ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5164e6",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 230
  },
  "hsl": {
    "h": 232.349,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.5623,
    "c": 0.19645,
    "h": 272.2
  },
  "luminance": 0.16577
}

Semantic roles & 50–950 ramp

primary
#5164E6
secondary
#E5DEAD
accent
#BD0ED7
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C17
muted
#7E7D85

Preview Lab

Preview with #5164E6

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

Preview Lab → · Contrast checker → · Palette generator →

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