#5164CA#5164CA

#5164CA is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.2% C 0.159 H 272.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5164CA
RGBrgb(81, 100, 202)
HSLhsl(231, 53%, 55%)
HSVhsv(231, 60%, 79%)
CMYKcmyk(59.9%, 50.5%, 0%, 20.8%)
CIE-LABlab(45.81, 23.92, -55.38)
CIE-LCHlch(45.81, 60.32, 293.36°)
OKLaboklab(54.19% 0.0059 -0.1585)
OKLCHoklch(54.19% 0.159 272.1)
XYZxyz(18.6076, 15.1265, 57.8048)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164CA #CAB751
analogous
#51A0CA #5164CA #7B51CA
triadic
#5164CA #CA5164 #64CA51
tetradic
#5164CA #CA51A0 #CAB751 #51CA7B
square
#5164CA #CA51A0 #CAB751 #51CA7B
split-complementary
#5164CA #CA7B51 #A0CA51
monochromatic
#25337B #3446AA #5164CA #808ED8 #AFB8E7

Accessibility & contrast

On white

5.22
#5164CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5164CA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164CA#FFFFFF#000000##FFFFFF
##5164CA1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C72CE
Deuteranopia (green-blind)
#1067C8
Tritanopia (blue-blind)
#007B8D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5164ca;
/* rgb */ color: rgb(81, 100, 202);
/* oklch */ color: oklch(54.2% 0.159 272.1);
Tailwind
colors: {
  custom: {
    50: '#8c8fdb',
    500: '#5164ca',
    950: '#000000',
  },
}
SCSS
$custom: #5164ca;
$custom-light: #8c8fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5164ca",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 202
  },
  "hsl": {
    "h": 230.579,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54186,
    "c": 0.15862,
    "h": 272.1
  },
  "luminance": 0.15128
}

Semantic roles & 50–950 ramp

primary
#5164CA
secondary
#D5CDA2
accent
#C64BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5164CA

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

Preview Lab → · Contrast checker → · Palette generator →

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