#5168C8#5168C8

#5168C8 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.9% C 0.151 H 270.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5168C8
RGBrgb(81, 104, 200)
HSLhsl(228, 52%, 55%)
HSVhsv(228, 60%, 78%)
CMYKcmyk(59.5%, 48%, 0%, 21.6%)
CIE-LABlab(46.74, 20.73, -52.74)
CIE-LCHlch(46.74, 56.67, 291.46°)
OKLaboklab(54.85% 0.0016 -0.1507)
OKLCHoklch(54.85% 0.151 270.6)
XYZxyz(18.7655, 15.8186, 56.6968)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168C8 #C8B151
analogous
#51A4C8 #5168C8 #7551C8
triadic
#5168C8 #C85168 #68C851
tetradic
#5168C8 #C851A4 #C8B151 #51C875
square
#5168C8 #C851A4 #C8B151 #51C875
split-complementary
#5168C8 #C87551 #A4C851
monochromatic
#263679 #354BA7 #5168C8 #8090D7 #AEB9E5

Accessibility & contrast

On white

5.04
#5168C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5168C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168C8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168C8#FFFFFF#000000##FFFFFF
##5168C81.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3874CC
Deuteranopia (green-blind)
#246AC6
Tritanopia (blue-blind)
#007E8E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5168c8;
/* rgb */ color: rgb(81, 104, 200);
/* oklch */ color: oklch(54.9% 0.151 270.6);
Tailwind
colors: {
  custom: {
    50: '#8c92d9',
    500: '#5168c8',
    950: '#000000',
  },
}
SCSS
$custom: #5168c8;
$custom-light: #8c92d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5168c8",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 200
  },
  "hsl": {
    "h": 228.403,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5485,
    "c": 0.1507,
    "h": 270.6
  },
  "luminance": 0.1582
}

Semantic roles & 50–950 ramp

primary
#5168C8
secondary
#D3CAA1
accent
#C04CDB
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0D15
muted
#7E7D83

Preview Lab

Preview with #5168C8

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

Preview Lab → · Contrast checker → · Palette generator →

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