#5166B5#5166B5

#5166B5 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.2% C 0.126 H 270.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5166B5
RGBrgb(81, 102, 181)
HSLhsl(227, 40%, 51%)
HSVhsv(227, 55%, 71%)
CMYKcmyk(55.2%, 43.6%, 0%, 29%)
CIE-LABlab(45.06, 15.62, -44.41)
CIE-LCHlch(45.06, 47.08, 289.38°)
OKLaboklab(53.21% 0.001 -0.1263)
OKLCHoklch(53.21% 0.126 270.4)
XYZxyz(16.4825, 14.5871, 45.6541)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B5 #B5A051
analogous
#5198B5 #5166B5 #6E51B5
triadic
#5166B5 #B55166 #66B551
tetradic
#5166B5 #B55198 #B5A051 #51B56E
square
#5166B5 #B55198 #B5A051 #51B56E
split-complementary
#5166B5 #B56E51 #98B551
monochromatic
#2A3562 #3C4D8D #5166B5 #7C8CC7 #A7B2DA

Accessibility & contrast

On white

5.36
#5166B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5166B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166B5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166B5#FFFFFF#000000##FFFFFF
##5166B51.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446FB8
Deuteranopia (green-blind)
#3867B3
Tritanopia (blue-blind)
#1A7785
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5166b5;
/* rgb */ color: rgb(81, 102, 181);
/* oklch */ color: oklch(53.2% 0.126 270.4);
Tailwind
colors: {
  custom: {
    50: '#8991cb',
    500: '#5166b5',
    950: '#000000',
  },
}
SCSS
$custom: #5166b5;
$custom-light: #8991cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b5",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 181
  },
  "hsl": {
    "h": 227.4,
    "s": 40.323,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53209,
    "c": 0.12626,
    "h": 270.4
  },
  "luminance": 0.14588
}

Semantic roles & 50–950 ramp

primary
#5166B5
secondary
#C7BE9B
accent
#B758D0
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B5

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

Preview Lab → · Contrast checker → · Palette generator →

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