#5164CB#5164CB

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

Color values

HEX#5164CB
RGBrgb(81, 100, 203)
HSLhsl(231, 54%, 56%)
HSVhsv(231, 60%, 80%)
CMYKcmyk(60.1%, 50.7%, 0%, 20.4%)
CIE-LABlab(45.87, 24.26, -55.85)
CIE-LCHlch(45.87, 60.89, 293.47°)
OKLaboklab(54.26% 0.006 -0.1599)
OKLCHoklch(54.26% 0.16 272.2)
XYZxyz(18.7264, 15.1740, 58.4304)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164CB #CBB851
analogous
#51A1CB #5164CB #7B51CB
triadic
#5164CB #CB5164 #64CB51
tetradic
#5164CB #CB51A1 #CBB851 #51CB7B
square
#5164CB #CB51A1 #CBB851 #51CB7B
split-complementary
#5164CB #CB7B51 #A1CB51
monochromatic
#25337C #3346AC #5164CB #808ED9 #AFB8E7

Accessibility & contrast

On white

5.20
#5164CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5164CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164CB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164CB#FFFFFF#000000##FFFFFF
##5164CB1.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B72CF
Deuteranopia (green-blind)
#0C68C9
Tritanopia (blue-blind)
#007C8E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5164cb;
/* rgb */ color: rgb(81, 100, 203);
/* oklch */ color: oklch(54.3% 0.160 272.2);
Tailwind
colors: {
  custom: {
    50: '#8d8fdb',
    500: '#5164cb',
    950: '#000000',
  },
}
SCSS
$custom: #5164cb;
$custom-light: #8d8fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5164cb",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 203
  },
  "hsl": {
    "h": 230.656,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54256,
    "c": 0.16001,
    "h": 272.2
  },
  "luminance": 0.15175
}

Semantic roles & 50–950 ramp

primary
#5164CB
secondary
#D5CDA3
accent
#C64ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5164CB

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

Preview Lab → · Contrast checker → · Palette generator →

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