#5164CC#5164CC

#5164CC is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.3% C 0.161 H 272.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5164CC
RGBrgb(81, 100, 204)
HSLhsl(231, 55%, 56%)
HSVhsv(231, 60%, 80%)
CMYKcmyk(60.3%, 51%, 0%, 20%)
CIE-LABlab(45.94, 24.59, -56.32)
CIE-LCHlch(45.94, 61.46, 293.59°)
OKLaboklab(54.33% 0.0061 -0.1613)
OKLCHoklch(54.33% 0.161 272.2)
XYZxyz(18.8460, 15.2218, 59.0600)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164CC #CCB951
analogous
#51A1CC #5164CC #7B51CC
triadic
#5164CC #CC5164 #64CC51
tetradic
#5164CC #CC51A1 #CCB951 #51CC7B
square
#5164CC #CC51A1 #CCB951 #51CC7B
split-complementary
#5164CC #CC7B51 #A1CC51
monochromatic
#25337E #3346AD #5164CC #808EDA #B0B8E8

Accessibility & contrast

On white

5.19
#5164CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5164CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164CC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164CC#FFFFFF#000000##FFFFFF
##5164CC1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A72D0
Deuteranopia (green-blind)
#0768CA
Tritanopia (blue-blind)
#007C8E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5164cc;
/* rgb */ color: rgb(81, 100, 204);
/* oklch */ color: oklch(54.3% 0.161 272.2);
Tailwind
colors: {
  custom: {
    50: '#8d8fdc',
    500: '#5164cc',
    950: '#000000',
  },
}
SCSS
$custom: #5164cc;
$custom-light: #8d8fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5164cc",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 204
  },
  "hsl": {
    "h": 230.732,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54326,
    "c": 0.1614,
    "h": 272.2
  },
  "luminance": 0.15223
}

Semantic roles & 50–950 ramp

primary
#5164CC
secondary
#D6CEA3
accent
#C74ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5164CC

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

Preview Lab → · Contrast checker → · Palette generator →

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