#5166B9#5166B9

#5166B9 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.5% C 0.132 H 270.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5166B9
RGBrgb(81, 102, 185)
HSLhsl(228, 43%, 52%)
HSVhsv(228, 56%, 73%)
CMYKcmyk(56.2%, 44.9%, 0%, 27.5%)
CIE-LABlab(45.29, 16.95, -46.37)
CIE-LCHlch(45.29, 49.37, 290.08°)
OKLaboklab(53.46% 0.0016 -0.132)
OKLCHoklch(53.46% 0.132 270.7)
XYZxyz(16.8988, 14.7536, 47.8468)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B9 #B9A451
analogous
#519AB9 #5166B9 #7051B9
triadic
#5166B9 #B95166 #66B951
tetradic
#5166B9 #B9519A #B9A451 #51B970
square
#5166B9 #B9519A #B9A451 #51B970
split-complementary
#5166B9 #B97051 #9AB951
monochromatic
#293666 #3B4C92 #5166B9 #7D8CCB #A8B3DC

Accessibility & contrast

On white

5.32
#5166B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5166B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166B9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166B9#FFFFFF#000000##FFFFFF
##5166B91.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)
#4170BC
Deuteranopia (green-blind)
#3467B7
Tritanopia (blue-blind)
#137886
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5166b9;
/* rgb */ color: rgb(81, 102, 185);
/* oklch */ color: oklch(53.5% 0.132 270.7);
Tailwind
colors: {
  custom: {
    50: '#8a91ce',
    500: '#5166b9',
    950: '#000000',
  },
}
SCSS
$custom: #5166b9;
$custom-light: #8a91ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b9",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 185
  },
  "hsl": {
    "h": 227.885,
    "s": 42.623,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53461,
    "c": 0.13202,
    "h": 270.7
  },
  "luminance": 0.14755
}

Semantic roles & 50–950 ramp

primary
#5166B9
secondary
#CAC09C
accent
#B955D2
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #5166B9

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

Preview Lab → · Contrast checker → · Palette generator →

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