#5161D8#5161D8

#5161D8 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.6% C 0.182 H 273.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5161D8
RGBrgb(81, 97, 216)
HSLhsl(233, 63%, 58%)
HSVhsv(233, 63%, 85%)
CMYKcmyk(62.5%, 55.1%, 0%, 15.3%)
CIE-LABlab(45.98, 30.52, -63.11)
CIE-LCHlch(45.98, 70.11, 295.81°)
OKLaboklab(54.62% 0.0097 -0.1813)
OKLCHoklch(54.62% 0.182 273.1)
XYZxyz(20.0586, 15.2549, 66.8399)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161D8 #D8C851
analogous
#51A4D8 #5161D8 #8451D8
triadic
#5161D8 #D85161 #61D851
tetradic
#5161D8 #D851A4 #D8C851 #51D884
square
#5161D8 #D851A4 #D8C851 #51D884
split-complementary
#5161D8 #D88451 #A4D851
monochromatic
#202D8F #2B3DC1 #5161D8 #838EE3 #B5BCEE

Accessibility & contrast

On white

5.18
#5161D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5161D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161D8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161D8#FFFFFF#000000##FFFFFF
##5161D81.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5161d8;
/* rgb */ color: rgb(81, 97, 216);
/* oklch */ color: oklch(54.6% 0.182 273.1);
Tailwind
colors: {
  custom: {
    50: '#8f8de5',
    500: '#5161d8',
    950: '#000000',
  },
}
SCSS
$custom: #5161d8;
$custom-light: #8f8de5;
$custom-dark: #000000;
JSON
{
  "hex": "#5161d8",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 216
  },
  "hsl": {
    "h": 232.889,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54618,
    "c": 0.18155,
    "h": 273.1
  },
  "luminance": 0.15257
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5161D8

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

Preview Lab → · Contrast checker → · Palette generator →

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