#5164CD#5164CD

#5164CD is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.4% C 0.163 H 272.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5164CD
RGBrgb(81, 100, 205)
HSLhsl(231, 55%, 56%)
HSVhsv(231, 60%, 80%)
CMYKcmyk(60.5%, 51.2%, 0%, 19.6%)
CIE-LABlab(46.00, 24.93, -56.79)
CIE-LCHlch(46.00, 62.02, 293.70°)
OKLaboklab(54.4% 0.0062 -0.1627)
OKLCHoklch(54.4% 0.163 272.2)
XYZxyz(18.9663, 15.2699, 59.6937)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164CD #CDBA51
analogous
#51A2CD #5164CD #7C51CD
triadic
#5164CD #CD5164 #64CD51
tetradic
#5164CD #CD51A2 #CDBA51 #51CD7C
square
#5164CD #CD51A2 #CDBA51 #51CD7C
split-complementary
#5164CD #CD7C51 #A2CD51
monochromatic
#25327F #3245AF #5164CD #818EDB #B0B9E8

Accessibility & contrast

On white

5.18
#5164CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5164CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164CD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164CD#FFFFFF#000000##FFFFFF
##5164CD1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2873D1
Deuteranopia (green-blind)
#0268CB
Tritanopia (blue-blind)
#007C8F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5164cd;
/* rgb */ color: rgb(81, 100, 205);
/* oklch */ color: oklch(54.4% 0.163 272.2);
Tailwind
colors: {
  custom: {
    50: '#8d8fdd',
    500: '#5164cd',
    950: '#000000',
  },
}
SCSS
$custom: #5164cd;
$custom-light: #8d8fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5164cd",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 205
  },
  "hsl": {
    "h": 230.806,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54396,
    "c": 0.16278,
    "h": 272.2
  },
  "luminance": 0.15271
}

Semantic roles & 50–950 ramp

primary
#5164CD
secondary
#D7CFA3
accent
#C849DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5164CD

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

Preview Lab → · Contrast checker → · Palette generator →

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