#5168AF#5168AF

#5168AF is a mid, moderate blue. Relative luminance 0.147; OKLCH L 53.3% C 0.115 H 268.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5168AF
RGBrgb(81, 104, 175)
HSLhsl(225, 37%, 50%)
HSVhsv(225, 54%, 69%)
CMYKcmyk(53.7%, 40.6%, 0%, 31.4%)
CIE-LABlab(45.28, 12.39, -40.56)
CIE-LCHlch(45.28, 42.41, 286.98°)
OKLaboklab(53.27% -0.0025 -0.115)
OKLCHoklch(53.27% 0.115 268.7)
XYZxyz(16.0790, 14.7440, 42.5477)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168AF #AF9851
analogous
#5197AF #5168AF #6951AF
triadic
#5168AF #AF5168 #68AF51
tetradic
#5168AF #AF5197 #AF9851 #51AF69
square
#5168AF #AF5197 #AF9851 #51AF69
split-complementary
#5168AF #AF6951 #97AF51
monochromatic
#2A365C #3D4F85 #5168AF #7B8CC2 #A5B1D6

Accessibility & contrast

On white

5.32
#5168AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5168AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168AF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168AF#FFFFFF#000000##FFFFFF
##5168AF1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B70B2
Deuteranopia (green-blind)
#4067AD
Tritanopia (blue-blind)
#227783
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5168af;
/* rgb */ color: rgb(81, 104, 175);
/* oklch */ color: oklch(53.3% 0.115 268.7);
Tailwind
colors: {
  custom: {
    50: '#8892c7',
    500: '#5168af',
    950: '#000000',
  },
}
SCSS
$custom: #5168af;
$custom-light: #8892c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5168af",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 175
  },
  "hsl": {
    "h": 225.319,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53267,
    "c": 0.11499,
    "h": 268.7
  },
  "luminance": 0.14745
}

Semantic roles & 50–950 ramp

primary
#5168AF
secondary
#C3B999
accent
#B15BCD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0D13
muted
#7D7D82

Preview Lab

Preview with #5168AF

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

Preview Lab → · Contrast checker → · Palette generator →

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