#5166AF#5166AF

#5166AF is a mid, moderate blue. Relative luminance 0.143; OKLCH L 52.8% C 0.118 H 269.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5166AF
RGBrgb(81, 102, 175)
HSLhsl(227, 37%, 50%)
HSVhsv(227, 54%, 69%)
CMYKcmyk(53.7%, 41.7%, 0%, 31.4%)
CIE-LABlab(44.73, 13.64, -41.44)
CIE-LCHlch(44.73, 43.63, 288.22°)
OKLaboklab(52.84% -0.0002 -0.1176)
OKLCHoklch(52.84% 0.118 269.9)
XYZxyz(15.8800, 14.3461, 42.4814)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166AF #AF9A51
analogous
#5195AF #5166AF #6B51AF
triadic
#5166AF #AF5166 #66AF51
tetradic
#5166AF #AF5195 #AF9A51 #51AF6B
square
#5166AF #AF5195 #AF9A51 #51AF6B
split-complementary
#5166AF #AF6B51 #95AF51
monochromatic
#2A355C #3D4D85 #5166AF #7B8BC2 #A5B0D6

Accessibility & contrast

On white

5.43
#5166AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5166AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166AF
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166AF#FFFFFF#000000##FFFFFF
##5166AF1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486EB2
Deuteranopia (green-blind)
#3D66AD
Tritanopia (blue-blind)
#237682
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166af;
/* rgb */ color: rgb(81, 102, 175);
/* oklch */ color: oklch(52.8% 0.118 269.9);
Tailwind
colors: {
  custom: {
    50: '#8891c7',
    500: '#5166af',
    950: '#000000',
  },
}
SCSS
$custom: #5166af;
$custom-light: #8891c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5166af",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 175
  },
  "hsl": {
    "h": 226.596,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52839,
    "c": 0.11756,
    "h": 269.9
  },
  "luminance": 0.14347
}

Semantic roles & 50–950 ramp

primary
#5166AF
secondary
#C3BA99
accent
#B35BCD
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166AF

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

Preview Lab → · Contrast checker → · Palette generator →

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