#5161D6#5161D6

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

Color values

HEX#5161D6
RGBrgb(81, 97, 214)
HSLhsl(233, 62%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(62.1%, 54.7%, 0%, 16.1%)
CIE-LABlab(45.84, 29.85, -62.20)
CIE-LCHlch(45.84, 68.99, 295.64°)
OKLaboklab(54.47% 0.0096 -0.1786)
OKLCHoklch(54.47% 0.179 273.1)
XYZxyz(19.8016, 15.1521, 65.4864)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161D6 #D6C651
analogous
#51A3D6 #5161D6 #8351D6
triadic
#5161D6 #D65161 #61D651
tetradic
#5161D6 #D651A3 #D6C651 #51D683
square
#5161D6 #D651A3 #D6C651 #51D683
split-complementary
#5161D6 #D68351 #A3D651
monochromatic
#212E8C #2D3EBD #5161D6 #838EE2 #B4BBED

Accessibility & contrast

On white

5.21
#5161D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5161D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161D6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161D6#FFFFFF#000000##FFFFFF
##5161D61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0273DA
Deuteranopia (green-blind)
#0067D4
Tritanopia (blue-blind)
#007D92
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5161d6;
/* rgb */ color: rgb(81, 97, 214);
/* oklch */ color: oklch(54.5% 0.179 273.1);
Tailwind
colors: {
  custom: {
    50: '#8f8de3',
    500: '#5161d6',
    950: '#000000',
  },
}
SCSS
$custom: #5161d6;
$custom-light: #8f8de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5161d6",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 214
  },
  "hsl": {
    "h": 232.782,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54469,
    "c": 0.17886,
    "h": 273.1
  },
  "luminance": 0.15154
}

Semantic roles & 50–950 ramp

primary
#5161D6
secondary
#DCD6A7
accent
#D143E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5161D6

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

Preview Lab → · Contrast checker → · Palette generator →

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