#5168CD#5168CD

#5168CD is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.2% C 0.158 H 270.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5168CD
RGBrgb(81, 104, 205)
HSLhsl(229, 55%, 56%)
HSVhsv(229, 60%, 80%)
CMYKcmyk(60.5%, 49.3%, 0%, 19.6%)
CIE-LABlab(47.05, 22.43, -55.11)
CIE-LCHlch(47.05, 59.49, 292.15°)
OKLaboklab(55.19% 0.0022 -0.1577)
OKLCHoklch(55.19% 0.158 270.8)
XYZxyz(19.3594, 16.0561, 59.8247)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168CD #CDB651
analogous
#51A6CD #5168CD #7851CD
triadic
#5168CD #CD5168 #68CD51
tetradic
#5168CD #CD51A6 #CDB651 #51CD78
square
#5168CD #CD51A6 #CDB651 #51CD78
split-complementary
#5168CD #CD7851 #A6CD51
monochromatic
#25357F #3249AF #5168CD #8191DB #B0BBE8

Accessibility & contrast

On white

4.99
#5168CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5168CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168CD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168CD#FFFFFF#000000##FFFFFF
##5168CD1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3375D1
Deuteranopia (green-blind)
#1A6ACB
Tritanopia (blue-blind)
#007F91
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5168cd;
/* rgb */ color: rgb(81, 104, 205);
/* oklch */ color: oklch(55.2% 0.158 270.8);
Tailwind
colors: {
  custom: {
    50: '#8d92dd',
    500: '#5168cd',
    950: '#000000',
  },
}
SCSS
$custom: #5168cd;
$custom-light: #8d92dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5168cd",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 205
  },
  "hsl": {
    "h": 228.871,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55188,
    "c": 0.15767,
    "h": 270.8
  },
  "luminance": 0.16058
}

Semantic roles & 50–950 ramp

primary
#5168CD
secondary
#D7CDA3
accent
#C349DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0D15
muted
#7E7D83

Preview Lab

Preview with #5168CD

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

Preview Lab → · Contrast checker → · Palette generator →

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