#5164D3#5164D3

#5164D3 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.8% C 0.171 H 272.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5164D3
RGBrgb(81, 100, 211)
HSLhsl(231, 60%, 57%)
HSVhsv(231, 62%, 83%)
CMYKcmyk(61.6%, 52.6%, 0%, 17.3%)
CIE-LABlab(46.40, 26.96, -59.58)
CIE-LCHlch(46.40, 65.40, 294.35°)
OKLaboklab(54.82% 0.0067 -0.1709)
OKLCHoklch(54.82% 0.171 272.2)
XYZxyz(19.7045, 15.5652, 63.5814)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5164D3 #D3C051
analogous
#51A5D3 #5164D3 #7F51D3
triadic
#5164D3 #D35164 #64D351
tetradic
#5164D3 #D351A5 #D3C051 #51D37F
square
#5164D3 #D351A5 #D3C051 #51D37F
split-complementary
#5164D3 #D37F51 #A5D351
monochromatic
#223187 #2F43B8 #5164D3 #8290DF #B3BBEC

Accessibility & contrast

On white

5.11
#5164D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5164D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5164D3
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5164D3#FFFFFF#000000##FFFFFF
##5164D31.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E74D7
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#007E92
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5164d3;
/* rgb */ color: rgb(81, 100, 211);
/* oklch */ color: oklch(54.8% 0.171 272.2);
Tailwind
colors: {
  custom: {
    50: '#8e8fe1',
    500: '#5164d3',
    950: '#000000',
  },
}
SCSS
$custom: #5164d3;
$custom-light: #8e8fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#5164d3",
  "rgb": {
    "r": 81,
    "g": 100,
    "b": 211
  },
  "hsl": {
    "h": 231.231,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54822,
    "c": 0.17101,
    "h": 272.2
  },
  "luminance": 0.15567
}

Semantic roles & 50–950 ramp

primary
#5164D3
secondary
#DAD3A6
accent
#CC45E3
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5164D3

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

Preview Lab → · Contrast checker → · Palette generator →

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