#5168CC#5168CC

#5168CC is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.1% C 0.156 H 270.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5168CC
RGBrgb(81, 104, 204)
HSLhsl(229, 55%, 56%)
HSVhsv(229, 60%, 80%)
CMYKcmyk(60.3%, 49%, 0%, 20%)
CIE-LABlab(46.98, 22.09, -54.63)
CIE-LCHlch(46.98, 58.93, 292.01°)
OKLaboklab(55.12% 0.0021 -0.1563)
OKLCHoklch(55.12% 0.156 270.8)
XYZxyz(19.2391, 16.0080, 59.1910)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168CC #CCB551
analogous
#51A6CC #5168CC #7751CC
triadic
#5168CC #CC5168 #68CC51
tetradic
#5168CC #CC51A6 #CCB551 #51CC77
square
#5168CC #CC51A6 #CCB551 #51CC77
split-complementary
#5168CC #CC7751 #A6CC51
monochromatic
#25357E #334AAD #5168CC #8091DA #B0BAE8

Accessibility & contrast

On white

5.00
#5168CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5168CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168CC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168CC#FFFFFF#000000##FFFFFF
##5168CC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3475D0
Deuteranopia (green-blind)
#1C6ACA
Tritanopia (blue-blind)
#007F90
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5168cc;
/* rgb */ color: rgb(81, 104, 204);
/* oklch */ color: oklch(55.1% 0.156 270.8);
Tailwind
colors: {
  custom: {
    50: '#8d92dc',
    500: '#5168cc',
    950: '#000000',
  },
}
SCSS
$custom: #5168cc;
$custom-light: #8d92dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5168cc",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 204
  },
  "hsl": {
    "h": 228.78,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5512,
    "c": 0.15628,
    "h": 270.8
  },
  "luminance": 0.1601
}

Semantic roles & 50–950 ramp

primary
#5168CC
secondary
#D6CCA3
accent
#C24ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0D15
muted
#7E7D83

Preview Lab

Preview with #5168CC

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

Preview Lab → · Contrast checker → · Palette generator →

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