#5168CB#5168CB

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

Color values

HEX#5168CB
RGBrgb(81, 104, 203)
HSLhsl(229, 54%, 56%)
HSVhsv(229, 60%, 80%)
CMYKcmyk(60.1%, 48.8%, 0%, 20.4%)
CIE-LABlab(46.92, 21.75, -54.16)
CIE-LCHlch(46.92, 58.36, 291.88°)
OKLaboklab(55.05% 0.002 -0.1549)
OKLCHoklch(55.05% 0.155 270.7)
XYZxyz(19.1195, 15.9602, 58.5614)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168CB #CBB451
analogous
#51A5CB #5168CB #7751CB
triadic
#5168CB #CB5168 #68CB51
tetradic
#5168CB #CB51A5 #CBB451 #51CB77
square
#5168CB #CB51A5 #CBB451 #51CB77
split-complementary
#5168CB #CB7751 #A5CB51
monochromatic
#25367C #334AAC #5168CB #8091D9 #AFBAE7

Accessibility & contrast

On white

5.01
#5168CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5168CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168CB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168CB#FFFFFF#000000##FFFFFF
##5168CB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3575CF
Deuteranopia (green-blind)
#1E6AC9
Tritanopia (blue-blind)
#007F90
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5168cb;
/* rgb */ color: rgb(81, 104, 203);
/* oklch */ color: oklch(55.1% 0.155 270.7);
Tailwind
colors: {
  custom: {
    50: '#8c92db',
    500: '#5168cb',
    950: '#000000',
  },
}
SCSS
$custom: #5168cb;
$custom-light: #8c92db;
$custom-dark: #000000;
JSON
{
  "hex": "#5168cb",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 203
  },
  "hsl": {
    "h": 228.689,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55052,
    "c": 0.15489,
    "h": 270.7
  },
  "luminance": 0.15962
}

Semantic roles & 50–950 ramp

primary
#5168CB
secondary
#D5CCA3
accent
#C24ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0D15
muted
#7E7D83

Preview Lab

Preview with #5168CB

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

Preview Lab → · Contrast checker → · Palette generator →

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