#5166BA#5166BA

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

Color values

HEX#5166BA
RGBrgb(81, 102, 186)
HSLhsl(228, 43%, 52%)
HSVhsv(228, 56%, 73%)
CMYKcmyk(56.5%, 45.2%, 0%, 27.1%)
CIE-LABlab(45.35, 17.28, -46.86)
CIE-LCHlch(45.35, 49.95, 290.25°)
OKLaboklab(53.52% 0.0018 -0.1334)
OKLCHoklch(53.52% 0.133 270.8)
XYZxyz(17.0047, 14.7960, 48.4047)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166BA #BAA551
analogous
#519BBA #5166BA #7151BA
triadic
#5166BA #BA5166 #66BA51
tetradic
#5166BA #BA519B #BAA551 #51BA71
square
#5166BA #BA519B #BAA551 #51BA71
split-complementary
#5166BA #BA7151 #9BBA51
monochromatic
#293668 #3A4C93 #5166BA #7D8DCB #A9B3DD

Accessibility & contrast

On white

5.30
#5166BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5166BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166BA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166BA#FFFFFF#000000##FFFFFF
##5166BA1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4070BD
Deuteranopia (green-blind)
#3367B8
Tritanopia (blue-blind)
#107987
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5166ba;
/* rgb */ color: rgb(81, 102, 186);
/* oklch */ color: oklch(53.5% 0.133 270.8);
Tailwind
colors: {
  custom: {
    50: '#8a91cf',
    500: '#5166ba',
    950: '#000000',
  },
}
SCSS
$custom: #5166ba;
$custom-light: #8a91cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ba",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 186
  },
  "hsl": {
    "h": 228,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53524,
    "c": 0.13345,
    "h": 270.8
  },
  "luminance": 0.14797
}

Semantic roles & 50–950 ramp

primary
#5166BA
secondary
#CAC19D
accent
#BA55D3
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #5166BA

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

Preview Lab → · Contrast checker → · Palette generator →

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