#5166B0#5166B0

#5166B0 is a mid, moderate blue. Relative luminance 0.144; OKLCH L 52.9% C 0.119 H 270.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5166B0
RGBrgb(81, 102, 176)
HSLhsl(227, 38%, 50%)
HSVhsv(227, 54%, 69%)
CMYKcmyk(54%, 42%, 0%, 31%)
CIE-LABlab(44.78, 13.97, -41.94)
CIE-LCHlch(44.78, 44.21, 288.42°)
OKLaboklab(52.9% 0 -0.119)
OKLCHoklch(52.9% 0.119 270)
XYZxyz(15.9786, 14.3855, 43.0006)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B0 #B09B51
analogous
#5195B0 #5166B0 #6C51B0
triadic
#5166B0 #B05166 #66B051
tetradic
#5166B0 #B05195 #B09B51 #51B06C
square
#5166B0 #B05195 #B09B51 #51B06C
split-complementary
#5166B0 #B06C51 #95B051
monochromatic
#2A355D #3D4D87 #5166B0 #7B8BC3 #A5B0D6

Accessibility & contrast

On white

5.42
#5166B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5166B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166B0
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166B0#FFFFFF#000000##FFFFFF
##5166B01.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476EB3
Deuteranopia (green-blind)
#3C66AE
Tritanopia (blue-blind)
#217682
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166b0;
/* rgb */ color: rgb(81, 102, 176);
/* oklch */ color: oklch(52.9% 0.119 270.0);
Tailwind
colors: {
  custom: {
    50: '#8891c8',
    500: '#5166b0',
    950: '#000000',
  },
}
SCSS
$custom: #5166b0;
$custom-light: #8891c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b0",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 176
  },
  "hsl": {
    "h": 226.737,
    "s": 37.549,
    "l": 50.392
  },
  "oklch": {
    "l": 0.529,
    "c": 0.11902,
    "h": 270
  },
  "luminance": 0.14387
}

Semantic roles & 50–950 ramp

primary
#5166B0
secondary
#C4BA99
accent
#B45ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B0

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

Preview Lab → · Contrast checker → · Palette generator →

#5166B0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva