#5161D7#5161D7

#5161D7 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.5% C 0.180 H 273.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5161D7
RGBrgb(81, 97, 215)
HSLhsl(233, 63%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(62.3%, 54.9%, 0%, 15.7%)
CIE-LABlab(45.91, 30.19, -62.66)
CIE-LCHlch(45.91, 69.55, 295.72°)
OKLaboklab(54.54% 0.0097 -0.1799)
OKLCHoklch(54.54% 0.18 273.1)
XYZxyz(19.9297, 15.2033, 66.1611)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161D7 #D7C751
analogous
#51A4D7 #5161D7 #8451D7
triadic
#5161D7 #D75161 #61D751
tetradic
#5161D7 #D751A4 #D7C751 #51D784
square
#5161D7 #D751A4 #D7C751 #51D784
split-complementary
#5161D7 #D78451 #A4D751
monochromatic
#202D8D #2C3DBF #5161D7 #838EE2 #B5BBEE

Accessibility & contrast

On white

5.20
#5161D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5161D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161D7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161D7#FFFFFF#000000##FFFFFF
##5161D71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DB
Deuteranopia (green-blind)
#0067D5
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5161d7;
/* rgb */ color: rgb(81, 97, 215);
/* oklch */ color: oklch(54.5% 0.180 273.1);
Tailwind
colors: {
  custom: {
    50: '#8f8de4',
    500: '#5161d7',
    950: '#000000',
  },
}
SCSS
$custom: #5161d7;
$custom-light: #8f8de4;
$custom-dark: #000000;
JSON
{
  "hex": "#5161d7",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 215
  },
  "hsl": {
    "h": 232.836,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54543,
    "c": 0.18021,
    "h": 273.1
  },
  "luminance": 0.15205
}

Semantic roles & 50–950 ramp

primary
#5161D7
secondary
#DDD6A7
accent
#D242E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5161D7

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

Preview Lab → · Contrast checker → · Palette generator →

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