#5168DE#5168DE

#5168DE is a mid, vivid blue. Relative luminance 0.169; OKLCH L 56.4% C 0.181 H 271.2°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5168DE
RGBrgb(81, 104, 222)
HSLhsl(230, 68%, 59%)
HSVhsv(230, 64%, 87%)
CMYKcmyk(63.5%, 53.2%, 0%, 12.9%)
CIE-LABlab(48.16, 28.21, -62.99)
CIE-LCHlch(48.16, 69.02, 294.12°)
OKLaboklab(56.38% 0.0036 -0.1809)
OKLCHoklch(56.38% 0.181 271.2)
XYZxyz(21.5240, 16.9220, 71.2251)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168DE #DEC751
analogous
#51AEDE #5168DE #8151DE
triadic
#5168DE #DE5168 #68DE51
tetradic
#5168DE #DE51AE #DEC751 #51DE81
square
#5168DE #DE51AE #DEC751 #51DE81
split-complementary
#5168DE #DE8151 #AEDE51
monochromatic
#1D3198 #2741CB #5168DE #8495E8 #B8C1F2

Accessibility & contrast

On white

4.79
#5168DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5168DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168DE
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168DE#FFFFFF#000000##FFFFFF
##5168DE1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1779E2
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#008499
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5168de;
/* rgb */ color: rgb(81, 104, 222);
/* oklch */ color: oklch(56.4% 0.181 271.2);
Tailwind
colors: {
  custom: {
    50: '#9092e9',
    500: '#5168de',
    950: '#000000',
  },
}
SCSS
$custom: #5168de;
$custom-light: #9092e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5168de",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 222
  },
  "hsl": {
    "h": 230.213,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56384,
    "c": 0.1809,
    "h": 271.2
  },
  "luminance": 0.16924
}

Semantic roles & 50–950 ramp

primary
#5168DE
secondary
#E1D8AA
accent
#CF3DEB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0D16
muted
#7E7D84

Preview Lab

Preview with #5168DE

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

Preview Lab → · Contrast checker → · Palette generator →

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