#5164BC#5164BC

#5164BC is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.2% C 0.139 H 271.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5164BC
RGBrgb(81, 100, 188)
HSLhsl(229, 44%, 53%)
HSVhsv(229, 57%, 74%)
CMYKcmyk(56.9%, 46.8%, 0%, 26.3%)
CIE-LABlab(44.93, 19.21, -48.70)
CIE-LCHlch(44.93, 52.35, 291.53°)
OKLaboklab(53.24% 0.0043 -0.1389)
OKLCHoklch(53.24% 0.139 271.8)
XYZxyz(17.0246, 14.4932, 49.4675)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164BC #BCA951
analogous
#5199BC #5164BC #7451BC
triadic
#5164BC #BC5164 #64BC51
tetradic
#5164BC #BC5199 #BCA951 #51BC74
square
#5164BC #BC5199 #BCA951 #51BC74
split-complementary
#5164BC #BC7451 #99BC51
monochromatic
#29346A #3A4A96 #5164BC #7D8BCD #A9B3DE

Accessibility & contrast

On white

5.39
#5164BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5164BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164BC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164BC#FFFFFF#000000##FFFFFF
##5164BC1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6FBF
Deuteranopia (green-blind)
#2C66BA
Tritanopia (blue-blind)
#0C7887
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5164bc;
/* rgb */ color: rgb(81, 100, 188);
/* oklch */ color: oklch(53.2% 0.139 271.8);
Tailwind
colors: {
  custom: {
    50: '#8a8fd1',
    500: '#5164bc',
    950: '#000000',
  },
}
SCSS
$custom: #5164bc;
$custom-light: #8a8fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5164bc",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 188
  },
  "hsl": {
    "h": 229.346,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53242,
    "c": 0.13893,
    "h": 271.8
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

primary
#5164BC
secondary
#CCC39D
accent
#BD54D4
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #5164BC

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

Preview Lab → · Contrast checker → · Palette generator →

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