#5166B1#5166B1

#5166B1 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 53.0% C 0.120 H 270.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5166B1
RGBrgb(81, 102, 177)
HSLhsl(227, 38%, 51%)
HSVhsv(227, 54%, 69%)
CMYKcmyk(54.2%, 42.4%, 0%, 30.6%)
CIE-LABlab(44.84, 14.30, -42.44)
CIE-LCHlch(44.84, 44.78, 288.62°)
OKLaboklab(52.96% 0.0002 -0.1205)
OKLCHoklch(52.96% 0.12 270.1)
XYZxyz(16.0779, 14.4253, 43.5236)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B1 #B19C51
analogous
#5196B1 #5166B1 #6C51B1
triadic
#5166B1 #B15166 #66B151
tetradic
#5166B1 #B15196 #B19C51 #51B16C
square
#5166B1 #B15196 #B19C51 #51B16C
split-complementary
#5166B1 #B16C51 #96B151
monochromatic
#2A355E #3D4D88 #5166B1 #7B8BC4 #A6B0D7

Accessibility & contrast

On white

5.41
#5166B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5166B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166B1
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166B1#FFFFFF#000000##FFFFFF
##5166B11.005.413.895.41
#FFFFFF5.411.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476FB4
Deuteranopia (green-blind)
#3B66AF
Tritanopia (blue-blind)
#207683
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166b1;
/* rgb */ color: rgb(81, 102, 177);
/* oklch */ color: oklch(53.0% 0.120 270.1);
Tailwind
colors: {
  custom: {
    50: '#8991c9',
    500: '#5166b1',
    950: '#000000',
  },
}
SCSS
$custom: #5166b1;
$custom-light: #8991c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b1",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 177
  },
  "hsl": {
    "h": 226.875,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52961,
    "c": 0.12047,
    "h": 270.1
  },
  "luminance": 0.14426
}

Semantic roles & 50–950 ramp

primary
#5166B1
secondary
#C4BB9A
accent
#B55ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B1

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

Preview Lab → · Contrast checker → · Palette generator →

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