#5168CF#5168CF

#5168CF is a mid, vivid blue. Relative luminance 0.162; OKLCH L 55.3% C 0.160 H 270.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5168CF
RGBrgb(81, 104, 207)
HSLhsl(229, 57%, 56%)
HSVhsv(229, 61%, 81%)
CMYKcmyk(60.9%, 49.8%, 0%, 18.8%)
CIE-LABlab(47.17, 23.11, -56.05)
CIE-LCHlch(47.17, 60.62, 292.40°)
OKLaboklab(55.33% 0.0024 -0.1604)
OKLCHoklch(55.33% 0.16 270.9)
XYZxyz(19.6024, 16.1533, 61.1043)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168CF #CFB851
analogous
#51A7CF #5168CF #7951CF
triadic
#5168CF #CF5168 #68CF51
tetradic
#5168CF #CF51A7 #CFB851 #51CF79
square
#5168CF #CF51A7 #CFB851 #51CF79
split-complementary
#5168CF #CF7951 #A7CF51
monochromatic
#243582 #3149B2 #5168CF #8192DC #B1BBE9

Accessibility & contrast

On white

4.96
#5168CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5168CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168CF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168CF#FFFFFF#000000##FFFFFF
##5168CF1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3176D3
Deuteranopia (green-blind)
#146BCD
Tritanopia (blue-blind)
#008092
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5168cf;
/* rgb */ color: rgb(81, 104, 207);
/* oklch */ color: oklch(55.3% 0.160 270.9);
Tailwind
colors: {
  custom: {
    50: '#8d92de',
    500: '#5168cf',
    950: '#000000',
  },
}
SCSS
$custom: #5168cf;
$custom-light: #8d92de;
$custom-dark: #000000;
JSON
{
  "hex": "#5168cf",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 207
  },
  "hsl": {
    "h": 229.048,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55325,
    "c": 0.16044,
    "h": 270.9
  },
  "luminance": 0.16155
}

Semantic roles & 50–950 ramp

primary
#5168CF
secondary
#D8CEA4
accent
#C448E0
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0D15
muted
#7E7D83

Preview Lab

Preview with #5168CF

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

Preview Lab → · Contrast checker → · Palette generator →

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