#5160D8#5160D8

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

Color values

HEX#5160D8
RGBrgb(81, 96, 216)
HSLhsl(233, 63%, 58%)
HSVhsv(233, 63%, 85%)
CMYKcmyk(62.5%, 55.6%, 0%, 15.3%)
CIE-LABlab(45.73, 31.15, -63.52)
CIE-LCHlch(45.73, 70.74, 296.12°)
OKLaboklab(54.43% 0.0106 -0.1825)
OKLCHoklch(54.43% 0.183 273.3)
XYZxyz(19.9668, 15.0713, 66.8093)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160D8 #D8C951
analogous
#51A4D8 #5160D8 #8551D8
triadic
#5160D8 #D85160 #60D851
tetradic
#5160D8 #D851A4 #D8C951 #51D885
square
#5160D8 #D851A4 #D8C951 #51D885
split-complementary
#5160D8 #D88551 #A4D851
monochromatic
#202C8F #2B3CC1 #5160D8 #838EE3 #B5BBEE

Accessibility & contrast

On white

5.23
#5160D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5160D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160D8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160D8#FFFFFF#000000##FFFFFF
##5160D81.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#007D93
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5160d8;
/* rgb */ color: rgb(81, 96, 216);
/* oklch */ color: oklch(54.4% 0.183 273.3);
Tailwind
colors: {
  custom: {
    50: '#8f8de5',
    500: '#5160d8',
    950: '#000000',
  },
}
SCSS
$custom: #5160d8;
$custom-light: #8f8de5;
$custom-dark: #000000;
JSON
{
  "hex": "#5160d8",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 216
  },
  "hsl": {
    "h": 233.333,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54431,
    "c": 0.18281,
    "h": 273.3
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#5160D8
secondary
#DDD7A8
accent
#D441E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5160D8

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

Preview Lab → · Contrast checker → · Palette generator →

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