#5167CB#5167CB

#5167CB is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.9% C 0.156 H 271.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5167CB
RGBrgb(81, 103, 203)
HSLhsl(229, 54%, 56%)
HSVhsv(229, 60%, 80%)
CMYKcmyk(60.1%, 49.3%, 0%, 20.4%)
CIE-LABlab(46.66, 22.38, -54.59)
CIE-LCHlch(46.66, 58.99, 292.29°)
OKLaboklab(54.85% 0.003 -0.1561)
OKLCHoklch(54.85% 0.156 271.1)
XYZxyz(19.0195, 15.7601, 58.5281)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5167CB #CBB551
analogous
#51A4CB #5167CB #7851CB
triadic
#5167CB #CB5167 #67CB51
tetradic
#5167CB #CB51A4 #CBB551 #51CB78
square
#5167CB #CB51A4 #CBB551 #51CB78
split-complementary
#5167CB #CB7851 #A4CB51
monochromatic
#25357C #3349AC #5167CB #8090D9 #AFB9E7

Accessibility & contrast

On white

5.06
#5167CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5167CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5167CB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5167CB#FFFFFF#000000##FFFFFF
##5167CB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#1B69C9
Tritanopia (blue-blind)
#007E8F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5167cb;
/* rgb */ color: rgb(81, 103, 203);
/* oklch */ color: oklch(54.9% 0.156 271.1);
Tailwind
colors: {
  custom: {
    50: '#8c92db',
    500: '#5167cb',
    950: '#000000',
  },
}
SCSS
$custom: #5167cb;
$custom-light: #8c92db;
$custom-dark: #000000;
JSON
{
  "hex": "#5167cb",
  "rgb": {
    "r": 81,
    "g": 103,
    "b": 203
  },
  "hsl": {
    "h": 229.18,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54851,
    "c": 0.15617,
    "h": 271.1
  },
  "luminance": 0.15762
}

Semantic roles & 50–950 ramp

primary
#5167CB
secondary
#D5CCA3
accent
#C34ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5167CB

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

Preview Lab → · Contrast checker → · Palette generator →

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