#5168BA#5168BA

#5168BA is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.9% C 0.131 H 269.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5168BA
RGBrgb(81, 104, 186)
HSLhsl(227, 43%, 52%)
HSVhsv(227, 56%, 73%)
CMYKcmyk(56.5%, 44.1%, 0%, 27.1%)
CIE-LABlab(45.90, 16.03, -45.99)
CIE-LCHlch(45.90, 48.70, 289.22°)
OKLaboklab(53.94% -0.0004 -0.1309)
OKLCHoklch(53.94% 0.131 269.8)
XYZxyz(17.2036, 15.1938, 48.4710)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168BA #BAA351
analogous
#519DBA #5168BA #6E51BA
triadic
#5168BA #BA5168 #68BA51
tetradic
#5168BA #BA519D #BAA351 #51BA6E
square
#5168BA #BA519D #BAA351 #51BA6E
split-complementary
#5168BA #BA6E51 #9DBA51
monochromatic
#293768 #3A4E93 #5168BA #7D8ECB #A9B4DD

Accessibility & contrast

On white

5.20
#5168BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5168BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168BA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168BA#FFFFFF#000000##FFFFFF
##5168BA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4472BD
Deuteranopia (green-blind)
#3668B8
Tritanopia (blue-blind)
#0F7A88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5168ba;
/* rgb */ color: rgb(81, 104, 186);
/* oklch */ color: oklch(53.9% 0.131 269.8);
Tailwind
colors: {
  custom: {
    50: '#8a92cf',
    500: '#5168ba',
    950: '#000000',
  },
}
SCSS
$custom: #5168ba;
$custom-light: #8a92cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5168ba",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 186
  },
  "hsl": {
    "h": 226.857,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53941,
    "c": 0.13087,
    "h": 269.8
  },
  "luminance": 0.15195
}

Semantic roles & 50–950 ramp

primary
#5168BA
secondary
#CAC09D
accent
#B755D3
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0D14
muted
#7D7D82

Preview Lab

Preview with #5168BA

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

Preview Lab → · Contrast checker → · Palette generator →

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