#5164DA#5164DA

#5164DA is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.3% C 0.180 H 272.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5164DA
RGBrgb(81, 100, 218)
HSLhsl(232, 65%, 59%)
HSVhsv(232, 63%, 85%)
CMYKcmyk(62.8%, 54.1%, 0%, 14.5%)
CIE-LABlab(46.87, 29.33, -62.80)
CIE-LCHlch(46.87, 69.32, 295.04°)
OKLaboklab(55.33% 0.0071 -0.1804)
OKLCHoklch(55.33% 0.181 272.2)
XYZxyz(20.6012, 15.9239, 68.3040)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164DA #DAC751
analogous
#51A8DA #5164DA #8251DA
triadic
#5164DA #DA5164 #64DA51
tetradic
#5164DA #DA51A8 #DAC751 #51DA82
square
#5164DA #DA51A8 #DAC751 #51DA82
split-complementary
#5164DA #DA8251 #A8DA51
monochromatic
#1F2F92 #2A3FC4 #5164DA #8391E5 #B6BEEF

Accessibility & contrast

On white

5.02
#5164DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5164DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164DA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164DA#FFFFFF#000000##FFFFFF
##5164DA1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A75DE
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#008095
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5164da;
/* rgb */ color: rgb(81, 100, 218);
/* oklch */ color: oklch(55.3% 0.180 272.2);
Tailwind
colors: {
  custom: {
    50: '#8f8fe6',
    500: '#5164da',
    950: '#000000',
  },
}
SCSS
$custom: #5164da;
$custom-light: #8f8fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#5164da",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 218
  },
  "hsl": {
    "h": 231.679,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55331,
    "c": 0.1805,
    "h": 272.2
  },
  "luminance": 0.15926
}

Semantic roles & 50–950 ramp

primary
#5164DA
secondary
#DED7A8
accent
#D140E8
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5164DA

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

Preview Lab → · Contrast checker → · Palette generator →

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