#5160D7#5160D7

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

Color values

HEX#5160D7
RGBrgb(81, 96, 215)
HSLhsl(233, 63%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(62.3%, 55.3%, 0%, 15.7%)
CIE-LABlab(45.66, 30.81, -63.06)
CIE-LCHlch(45.66, 70.18, 296.04°)
OKLaboklab(54.36% 0.0106 -0.1811)
OKLCHoklch(54.36% 0.181 273.3)
XYZxyz(19.8379, 15.0197, 66.1305)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160D7 #D7C851
analogous
#51A3D7 #5160D7 #8551D7
triadic
#5160D7 #D75160 #60D751
tetradic
#5160D7 #D751A3 #D7C851 #51D785
square
#5160D7 #D751A3 #D7C851 #51D785
split-complementary
#5160D7 #D78551 #A3D751
monochromatic
#202D8D #2C3CBF #5160D7 #838DE2 #B5BBEE

Accessibility & contrast

On white

5.24
#5160D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5160D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160D7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160D7#FFFFFF#000000##FFFFFF
##5160D71.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DB
Deuteranopia (green-blind)
#0066D5
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5160d7;
/* rgb */ color: rgb(81, 96, 215);
/* oklch */ color: oklch(54.4% 0.181 273.3);
Tailwind
colors: {
  custom: {
    50: '#8f8de4',
    500: '#5160d7',
    950: '#000000',
  },
}
SCSS
$custom: #5160d7;
$custom-light: #8f8de4;
$custom-dark: #000000;
JSON
{
  "hex": "#5160d7",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 215
  },
  "hsl": {
    "h": 233.284,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54356,
    "c": 0.18146,
    "h": 273.3
  },
  "luminance": 0.15021
}

Semantic roles & 50–950 ramp

primary
#5160D7
secondary
#DDD7A7
accent
#D342E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5160D7

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

Preview Lab → · Contrast checker → · Palette generator →

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