#5168D3#5168D3

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

Color values

HEX#5168D3
RGBrgb(81, 104, 211)
HSLhsl(229, 60%, 57%)
HSVhsv(229, 62%, 83%)
CMYKcmyk(61.6%, 50.7%, 0%, 17.3%)
CIE-LABlab(47.43, 24.46, -57.92)
CIE-LCHlch(47.43, 62.87, 292.90°)
OKLaboklab(55.6% 0.0028 -0.1659)
OKLCHoklch(55.6% 0.166 271)
XYZxyz(20.0976, 16.3514, 63.7124)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168D3 #D3BC51
analogous
#51A9D3 #5168D3 #7B51D3
triadic
#5168D3 #D35168 #68D351
tetradic
#5168D3 #D351A9 #D3BC51 #51D37B
square
#5168D3 #D351A9 #D3BC51 #51D37B
split-complementary
#5168D3 #D37B51 #A9D351
monochromatic
#223487 #2F47B8 #5168D3 #8292DF #B3BDEC

Accessibility & contrast

On white

4.92
#5168D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5168D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168D3
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168D3#FFFFFF#000000##FFFFFF
##5168D31.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C77D7
Deuteranopia (green-blind)
#036BD1
Tritanopia (blue-blind)
#008194
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5168d3;
/* rgb */ color: rgb(81, 104, 211);
/* oklch */ color: oklch(55.6% 0.166 271.0);
Tailwind
colors: {
  custom: {
    50: '#8e92e1',
    500: '#5168d3',
    950: '#000000',
  },
}
SCSS
$custom: #5168d3;
$custom-light: #8e92e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5168d3",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 211
  },
  "hsl": {
    "h": 229.385,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55602,
    "c": 0.16595,
    "h": 271
  },
  "luminance": 0.16353
}

Semantic roles & 50–950 ramp

primary
#5168D3
secondary
#DAD1A6
accent
#C745E3
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0D15
muted
#7E7D83

Preview Lab

Preview with #5168D3

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

Preview Lab → · Contrast checker → · Palette generator →

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