#5164E1#5164E1

#5164E1 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.9% C 0.190 H 272.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5164E1
RGBrgb(81, 100, 225)
HSLhsl(232, 71%, 60%)
HSVhsv(232, 64%, 88%)
CMYKcmyk(64%, 55.6%, 0%, 11.8%)
CIE-LABlab(47.36, 31.71, -65.98)
CIE-LCHlch(47.36, 73.21, 295.67°)
OKLaboklab(55.85% 0.0074 -0.1897)
OKLCHoklch(55.85% 0.19 272.2)
XYZxyz(21.5366, 16.2980, 73.2304)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164E1 #E1CE51
analogous
#51ACE1 #5164E1 #8651E1
triadic
#5164E1 #E15164 #64E151
tetradic
#5164E1 #E151AC #E1CE51 #51E186
square
#5164E1 #E151AC #E1CE51 #51E186
split-complementary
#5164E1 #E18651 #ACE151
monochromatic
#1B2C9D #243BD1 #5164E1 #8593EA #B9C1F3

Accessibility & contrast

On white

4.93
#5164E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5164E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164E1
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164E1#FFFFFF#000000##FFFFFF
##5164E11.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#006ADE
Tritanopia (blue-blind)
#008299
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5164e1;
/* rgb */ color: rgb(81, 100, 225);
/* oklch */ color: oklch(55.9% 0.190 272.2);
Tailwind
colors: {
  custom: {
    50: '#9090eb',
    500: '#5164e1',
    950: '#000000',
  },
}
SCSS
$custom: #5164e1;
$custom-light: #9090eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5164e1",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 225
  },
  "hsl": {
    "h": 232.083,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.55851,
    "c": 0.18985,
    "h": 272.2
  },
  "luminance": 0.163
}

Semantic roles & 50–950 ramp

primary
#5164E1
secondary
#E3DBAB
accent
#D63AED
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5164E1

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

Preview Lab → · Contrast checker → · Palette generator →

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