#5168D6#5168D6

#5168D6 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.8% C 0.170 H 271.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5168D6
RGBrgb(81, 104, 214)
HSLhsl(230, 62%, 58%)
HSVhsv(230, 62%, 84%)
CMYKcmyk(62.1%, 51.4%, 0%, 16.1%)
CIE-LABlab(47.63, 25.48, -59.31)
CIE-LCHlch(47.63, 64.55, 293.25°)
OKLaboklab(55.81% 0.0031 -0.17)
OKLCHoklch(55.81% 0.17 271)
XYZxyz(20.4772, 16.5033, 65.7116)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168D6 #D6BF51
analogous
#51AAD6 #5168D6 #7C51D6
triadic
#5168D6 #D65168 #68D651
tetradic
#5168D6 #D651AA #D6BF51 #51D67C
square
#5168D6 #D651AA #D6BF51 #51D67C
split-complementary
#5168D6 #D67C51 #AAD651
monochromatic
#21338C #2D46BD #5168D6 #8393E2 #B4BEED

Accessibility & contrast

On white

4.88
#5168D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#5168D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168D6
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168D6#FFFFFF#000000##FFFFFF
##5168D61.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2777DA
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#008295
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5168d6;
/* rgb */ color: rgb(81, 104, 214);
/* oklch */ color: oklch(55.8% 0.170 271.0);
Tailwind
colors: {
  custom: {
    50: '#8e92e3',
    500: '#5168d6',
    950: '#000000',
  },
}
SCSS
$custom: #5168d6;
$custom-light: #8e92e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5168d6",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 214
  },
  "hsl": {
    "h": 229.624,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55812,
    "c": 0.17006,
    "h": 271
  },
  "luminance": 0.16505
}

Semantic roles & 50–950 ramp

primary
#5168D6
secondary
#DCD3A7
accent
#C943E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0D15
muted
#7E7D84

Preview Lab

Preview with #5168D6

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

Preview Lab → · Contrast checker → · Palette generator →

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