#5160D9#5160D9

#5160D9 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.5% C 0.184 H 273.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5160D9
RGBrgb(81, 96, 217)
HSLhsl(233, 64%, 58%)
HSVhsv(233, 63%, 85%)
CMYKcmyk(62.7%, 55.8%, 0%, 14.9%)
CIE-LABlab(45.80, 31.48, -63.97)
CIE-LCHlch(45.80, 71.30, 296.20°)
OKLaboklab(54.51% 0.0107 -0.1838)
OKLCHoklch(54.51% 0.184 273.3)
XYZxyz(20.0964, 15.1231, 67.4922)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160D9 #D9CA51
analogous
#51A4D9 #5160D9 #8651D9
triadic
#5160D9 #D95160 #60D951
tetradic
#5160D9 #D951A4 #D9CA51 #51D986
square
#5160D9 #D951A4 #D9CA51 #51D986
split-complementary
#5160D9 #D98651 #A4D951
monochromatic
#1F2C90 #2A3BC2 #5160D9 #838EE4 #B5BCEF

Accessibility & contrast

On white

5.22
#5160D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5160D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160D9
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160D9#FFFFFF#000000##FFFFFF
##5160D91.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#0067D7
Tritanopia (blue-blind)
#007D93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5160d9;
/* rgb */ color: rgb(81, 96, 217);
/* oklch */ color: oklch(54.5% 0.184 273.3);
Tailwind
colors: {
  custom: {
    50: '#8f8de6',
    500: '#5160d9',
    950: '#000000',
  },
}
SCSS
$custom: #5160d9;
$custom-light: #8f8de6;
$custom-dark: #000000;
JSON
{
  "hex": "#5160d9",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 217
  },
  "hsl": {
    "h": 233.382,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54506,
    "c": 0.18414,
    "h": 273.3
  },
  "luminance": 0.15125
}

Semantic roles & 50–950 ramp

primary
#5160D9
secondary
#DED8A8
accent
#D541E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5160D9

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

Preview Lab → · Contrast checker → · Palette generator →

#5160D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva