#5168BF#5168BF

#5168BF is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.3% C 0.138 H 270.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5168BF
RGBrgb(81, 104, 191)
HSLhsl(227, 46%, 53%)
HSVhsv(227, 58%, 75%)
CMYKcmyk(57.6%, 45.5%, 0%, 25.1%)
CIE-LABlab(46.19, 17.70, -48.42)
CIE-LCHlch(46.19, 51.55, 290.08°)
OKLaboklab(54.26% 0.0004 -0.138)
OKLCHoklch(54.26% 0.138 270.1)
XYZxyz(17.7445, 15.4102, 51.3195)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168BF #BFA851
analogous
#519FBF #5168BF #7151BF
triadic
#5168BF #BF5168 #68BF51
tetradic
#5168BF #BF519F #BFA851 #51BF71
square
#5168BF #BF519F #BFA851 #51BF71
split-complementary
#5168BF #BF7151 #9FBF51
monochromatic
#28376D #394D9A #5168BF #7E8FCF #AAB6E0

Accessibility & contrast

On white

5.14
#5168BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5168BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168BF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168BF#FFFFFF#000000##FFFFFF
##5168BF1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4073C2
Deuteranopia (green-blind)
#3169BD
Tritanopia (blue-blind)
#007B8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5168bf;
/* rgb */ color: rgb(81, 104, 191);
/* oklch */ color: oklch(54.3% 0.138 270.1);
Tailwind
colors: {
  custom: {
    50: '#8b92d3',
    500: '#5168bf',
    950: '#000000',
  },
}
SCSS
$custom: #5168bf;
$custom-light: #8b92d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5168bf",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 191
  },
  "hsl": {
    "h": 227.455,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54259,
    "c": 0.138,
    "h": 270.1
  },
  "luminance": 0.15412
}

Semantic roles & 50–950 ramp

primary
#5168BF
secondary
#CEC49E
accent
#BA52D6
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0D0D14
muted
#7D7D83

Preview Lab

Preview with #5168BF

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

Preview Lab → · Contrast checker → · Palette generator →

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