#5164C8#5164C8

#5164C8 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.0% C 0.156 H 272.1°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5164C8
RGBrgb(81, 100, 200)
HSLhsl(230, 52%, 55%)
HSVhsv(230, 60%, 78%)
CMYKcmyk(59.5%, 50%, 0%, 21.6%)
CIE-LABlab(45.68, 23.24, -54.44)
CIE-LCHlch(45.68, 59.19, 293.12°)
OKLaboklab(54.05% 0.0057 -0.1557)
OKLCHoklch(54.05% 0.156 272.1)
XYZxyz(18.3724, 15.0324, 56.5657)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164C8 #C8B551
analogous
#51A0C8 #5164C8 #7951C8
triadic
#5164C8 #C85164 #64C851
tetradic
#5164C8 #C851A0 #C8B551 #51C879
square
#5164C8 #C851A0 #C8B551 #51C879
split-complementary
#5164C8 #C87951 #A0C851
monochromatic
#263379 #3547A7 #5164C8 #808DD7 #AEB7E5

Accessibility & contrast

On white

5.24
#5164C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5164C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164C8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164C8#FFFFFF#000000##FFFFFF
##5164C81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F72CC
Deuteranopia (green-blind)
#1667C6
Tritanopia (blue-blind)
#007B8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5164c8;
/* rgb */ color: rgb(81, 100, 200);
/* oklch */ color: oklch(54.0% 0.156 272.1);
Tailwind
colors: {
  custom: {
    50: '#8c8fd9',
    500: '#5164c8',
    950: '#000000',
  },
}
SCSS
$custom: #5164c8;
$custom-light: #8c8fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5164c8",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 200
  },
  "hsl": {
    "h": 230.42,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54048,
    "c": 0.15584,
    "h": 272.1
  },
  "luminance": 0.15034
}

Semantic roles & 50–950 ramp

primary
#5164C8
secondary
#D3CBA1
accent
#C54CDB
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5164C8

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

Preview Lab → · Contrast checker → · Palette generator →

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