#5168B2#5168B2

#5168B2 is a mid, moderate blue. Relative luminance 0.149; OKLCH L 53.4% C 0.119 H 269.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5168B2
RGBrgb(81, 104, 178)
HSLhsl(226, 39%, 51%)
HSVhsv(226, 54%, 70%)
CMYKcmyk(54.5%, 41.6%, 0%, 30.2%)
CIE-LABlab(45.45, 13.37, -42.05)
CIE-LCHlch(45.45, 44.13, 287.64°)
OKLaboklab(53.45% -0.0019 -0.1193)
OKLCHoklch(53.45% 0.119 269.1)
XYZxyz(16.3769, 14.8631, 44.1167)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168B2 #B29B51
analogous
#5198B2 #5168B2 #6A51B2
triadic
#5168B2 #B25168 #68B251
tetradic
#5168B2 #B25198 #B29B51 #51B26A
square
#5168B2 #B25198 #B29B51 #51B26A
split-complementary
#5168B2 #B26A51 #98B251
monochromatic
#2A365F #3D4F89 #5168B2 #7B8DC5 #A6B2D8

Accessibility & contrast

On white

5.29
#5168B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5168B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168B2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168B2#FFFFFF#000000##FFFFFF
##5168B21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4970B5
Deuteranopia (green-blind)
#3E68B0
Tritanopia (blue-blind)
#1E7884
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5168b2;
/* rgb */ color: rgb(81, 104, 178);
/* oklch */ color: oklch(53.4% 0.119 269.1);
Tailwind
colors: {
  custom: {
    50: '#8992c9',
    500: '#5168b2',
    950: '#000000',
  },
}
SCSS
$custom: #5168b2;
$custom-light: #8992c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5168b2",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 178
  },
  "hsl": {
    "h": 225.773,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53447,
    "c": 0.11935,
    "h": 269.1
  },
  "luminance": 0.14864
}

Semantic roles & 50–950 ramp

primary
#5168B2
secondary
#C5BB9A
accent
#B359CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0D13
muted
#7D7D82

Preview Lab

Preview with #5168B2

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

Preview Lab → · Contrast checker → · Palette generator →

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