#5166B3#5166B3

#5166B3 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.1% C 0.123 H 270.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5166B3
RGBrgb(81, 102, 179)
HSLhsl(227, 39%, 51%)
HSVhsv(227, 55%, 70%)
CMYKcmyk(54.7%, 43%, 0%, 29.8%)
CIE-LABlab(44.95, 14.96, -43.43)
CIE-LCHlch(44.95, 45.93, 289.01°)
OKLaboklab(53.08% 0.0006 -0.1234)
OKLCHoklch(53.08% 0.123 270.3)
XYZxyz(16.2787, 14.5056, 44.5811)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B3 #B39E51
analogous
#5197B3 #5166B3 #6D51B3
triadic
#5166B3 #B35166 #66B351
tetradic
#5166B3 #B35197 #B39E51 #51B36D
square
#5166B3 #B35197 #B39E51 #51B36D
split-complementary
#5166B3 #B36D51 #97B351
monochromatic
#2A3560 #3C4D8A #5166B3 #7C8BC6 #A6B1D8

Accessibility & contrast

On white

5.38
#5166B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5166B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166B3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166B3#FFFFFF#000000##FFFFFF
##5166B31.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456FB6
Deuteranopia (green-blind)
#3A66B1
Tritanopia (blue-blind)
#1D7784
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166b3;
/* rgb */ color: rgb(81, 102, 179);
/* oklch */ color: oklch(53.1% 0.123 270.3);
Tailwind
colors: {
  custom: {
    50: '#8991ca',
    500: '#5166b3',
    950: '#000000',
  },
}
SCSS
$custom: #5166b3;
$custom-light: #8991ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b3",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 179
  },
  "hsl": {
    "h": 227.143,
    "s": 39.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53084,
    "c": 0.12337,
    "h": 270.3
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#5166B3
secondary
#C6BC9A
accent
#B659CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B3

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

Preview Lab → · Contrast checker → · Palette generator →

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