#5164BF#5164BF

#5164BF is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.4% C 0.143 H 271.9°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5164BF
RGBrgb(81, 100, 191)
HSLhsl(230, 46%, 53%)
HSVhsv(230, 58%, 75%)
CMYKcmyk(57.6%, 47.6%, 0%, 25.1%)
CIE-LABlab(45.11, 20.22, -50.14)
CIE-LCHlch(45.11, 54.06, 291.96°)
OKLaboklab(53.44% 0.0047 -0.1431)
OKLCHoklch(53.44% 0.143 271.9)
XYZxyz(17.3514, 14.6239, 51.1885)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164BF #BFAC51
analogous
#519BBF #5164BF #7551BF
triadic
#5164BF #BF5164 #64BF51
tetradic
#5164BF #BF519B #BFAC51 #51BF75
square
#5164BF #BF519B #BFAC51 #51BF75
split-complementary
#5164BF #BF7551 #9BBF51
monochromatic
#28346D #394A9A #5164BF #7E8CCF #AAB4E0

Accessibility & contrast

On white

5.35
#5164BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5164BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164BF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164BF#FFFFFF#000000##FFFFFF
##5164BF1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3870C2
Deuteranopia (green-blind)
#2866BD
Tritanopia (blue-blind)
#017888
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5164bf;
/* rgb */ color: rgb(81, 100, 191);
/* oklch */ color: oklch(53.4% 0.143 271.9);
Tailwind
colors: {
  custom: {
    50: '#8b8fd3',
    500: '#5164bf',
    950: '#000000',
  },
}
SCSS
$custom: #5164bf;
$custom-light: #8b8fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5164bf",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 191
  },
  "hsl": {
    "h": 229.636,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53439,
    "c": 0.14319,
    "h": 271.9
  },
  "luminance": 0.14625
}

Semantic roles & 50–950 ramp

primary
#5164BF
secondary
#CEC59E
accent
#BF52D6
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0D0C14
muted
#7D7D83

Preview Lab

Preview with #5164BF

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

Preview Lab → · Contrast checker → · Palette generator →

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