#5168D7#5168D7

#5168D7 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.9% C 0.171 H 271.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5168D7
RGBrgb(81, 104, 215)
HSLhsl(230, 63%, 58%)
HSVhsv(230, 62%, 84%)
CMYKcmyk(62.3%, 51.6%, 0%, 15.7%)
CIE-LABlab(47.69, 25.82, -59.77)
CIE-LCHlch(47.69, 65.11, 293.37°)
OKLaboklab(55.88% 0.0031 -0.1714)
OKLCHoklch(55.88% 0.171 271)
XYZxyz(20.6053, 16.5545, 66.3863)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168D7 #D7C051
analogous
#51ABD7 #5168D7 #7D51D7
triadic
#5168D7 #D75168 #68D751
tetradic
#5168D7 #D751AB #D7C051 #51D77D
square
#5168D7 #D751AB #D7C051 #51D77D
split-complementary
#5168D7 #D77D51 #ABD751
monochromatic
#20338D #2C45BF #5168D7 #8393E2 #B5BEEE

Accessibility & contrast

On white

4.87
#5168D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#5168D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168D7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168D7#FFFFFF#000000##FFFFFF
##5168D71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2677DB
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#008295
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5168d7;
/* rgb */ color: rgb(81, 104, 215);
/* oklch */ color: oklch(55.9% 0.171 271.0);
Tailwind
colors: {
  custom: {
    50: '#8e92e4',
    500: '#5168d7',
    950: '#000000',
  },
}
SCSS
$custom: #5168d7;
$custom-light: #8e92e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5168d7",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 215
  },
  "hsl": {
    "h": 229.701,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55883,
    "c": 0.17142,
    "h": 271
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#5168D7
secondary
#DDD3A7
accent
#CA42E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0D16
muted
#7E7D84

Preview Lab

Preview with #5168D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5168D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva