#5168BB#5168BB

#5168BB is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.0% C 0.132 H 269.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5168BB
RGBrgb(81, 104, 187)
HSLhsl(227, 44%, 53%)
HSVhsv(227, 57%, 73%)
CMYKcmyk(56.7%, 44.4%, 0%, 26.7%)
CIE-LABlab(45.96, 16.36, -46.48)
CIE-LCHlch(45.96, 49.27, 289.40°)
OKLaboklab(54% -0.0003 -0.1323)
OKLCHoklch(54% 0.132 269.9)
XYZxyz(17.3103, 15.2365, 49.0328)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168BB #BBA451
analogous
#519DBB #5168BB #6F51BB
triadic
#5168BB #BB5168 #68BB51
tetradic
#5168BB #BB519D #BBA451 #51BB6F
square
#5168BB #BB519D #BBA451 #51BB6F
split-complementary
#5168BB #BB6F51 #9DBB51
monochromatic
#293769 #3A4E95 #5168BB #7D8ECC #A9B4DD

Accessibility & contrast

On white

5.19
#5168BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5168BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168BB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168BB#FFFFFF#000000##FFFFFF
##5168BB1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4372BE
Deuteranopia (green-blind)
#3568B9
Tritanopia (blue-blind)
#0C7A88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5168bb;
/* rgb */ color: rgb(81, 104, 187);
/* oklch */ color: oklch(54.0% 0.132 269.9);
Tailwind
colors: {
  custom: {
    50: '#8a92d0',
    500: '#5168bb',
    950: '#000000',
  },
}
SCSS
$custom: #5168bb;
$custom-light: #8a92d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5168bb",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 187
  },
  "hsl": {
    "h": 226.981,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54004,
    "c": 0.1323,
    "h": 269.9
  },
  "luminance": 0.15238
}

Semantic roles & 50–950 ramp

primary
#5168BB
secondary
#CBC19D
accent
#B854D4
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0D14
muted
#7D7D82

Preview Lab

Preview with #5168BB

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

Preview Lab → · Contrast checker → · Palette generator →

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