#5164AF#5164AF

#5164AF is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.4% C 0.120 H 271.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5164AF
RGBrgb(81, 100, 175)
HSLhsl(228, 37%, 50%)
HSVhsv(228, 54%, 69%)
CMYKcmyk(53.7%, 42.9%, 0%, 31.4%)
CIE-LABlab(44.17, 14.90, -42.32)
CIE-LCHlch(44.17, 44.87, 289.39°)
OKLaboklab(52.42% 0.0022 -0.1202)
OKLCHoklch(52.42% 0.12 271)
XYZxyz(15.6859, 13.9577, 42.4167)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164AF #AF9C51
analogous
#5193AF #5164AF #6D51AF
triadic
#5164AF #AF5164 #64AF51
tetradic
#5164AF #AF5193 #AF9C51 #51AF6D
square
#5164AF #AF5193 #AF9C51 #51AF6D
split-complementary
#5164AF #AF6D51 #93AF51
monochromatic
#2A345C #3D4C85 #5164AF #7B89C2 #A5AFD6

Accessibility & contrast

On white

5.54
#5164AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5164AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164AF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164AF#FFFFFF#000000##FFFFFF
##5164AF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456DB2
Deuteranopia (green-blind)
#3A65AD
Tritanopia (blue-blind)
#237481
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5164af;
/* rgb */ color: rgb(81, 100, 175);
/* oklch */ color: oklch(52.4% 0.120 271.0);
Tailwind
colors: {
  custom: {
    50: '#888fc7',
    500: '#5164af',
    950: '#000000',
  },
}
SCSS
$custom: #5164af;
$custom-light: #888fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5164af",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 175
  },
  "hsl": {
    "h": 227.872,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52415,
    "c": 0.12018,
    "h": 271
  },
  "luminance": 0.13959
}

Semantic roles & 50–950 ramp

primary
#5164AF
secondary
#C3BA99
accent
#B65BCD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5164AF

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

Preview Lab → · Contrast checker → · Palette generator →

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