#5166C9#5166C9

#5166C9 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.5% C 0.155 H 271.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5166C9
RGBrgb(81, 102, 201)
HSLhsl(230, 53%, 55%)
HSVhsv(230, 60%, 79%)
CMYKcmyk(59.7%, 49.3%, 0%, 21.2%)
CIE-LABlab(46.27, 22.33, -54.06)
CIE-LCHlch(46.27, 58.49, 292.44°)
OKLaboklab(54.52% 0.0038 -0.1546)
OKLCHoklch(54.52% 0.155 271.4)
XYZxyz(18.6838, 15.4676, 57.2480)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166C9 #C9B451
analogous
#51A2C9 #5166C9 #7851C9
triadic
#5166C9 #C95166 #66C951
tetradic
#5166C9 #C951A2 #C9B451 #51C978
square
#5166C9 #C951A2 #C9B451 #51C978
split-complementary
#5166C9 #C97851 #A2C951
monochromatic
#26347A #3449A9 #5166C9 #808FD7 #AEB8E6

Accessibility & contrast

On white

5.13
#5166C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5166C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166C9
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166C9#FFFFFF#000000##FFFFFF
##5166C91.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3373CD
Deuteranopia (green-blind)
#1C69C7
Tritanopia (blue-blind)
#007D8E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5166c9;
/* rgb */ color: rgb(81, 102, 201);
/* oklch */ color: oklch(54.5% 0.155 271.4);
Tailwind
colors: {
  custom: {
    50: '#8c91da',
    500: '#5166c9',
    950: '#000000',
  },
}
SCSS
$custom: #5166c9;
$custom-light: #8c91da;
$custom-dark: #000000;
JSON
{
  "hex": "#5166c9",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 201
  },
  "hsl": {
    "h": 229.5,
    "s": 52.632,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54515,
    "c": 0.15466,
    "h": 271.4
  },
  "luminance": 0.15469
}

Semantic roles & 50–950 ramp

primary
#5166C9
secondary
#D4CBA2
accent
#C34CDC
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166C9

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

Preview Lab → · Contrast checker → · Palette generator →

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