#5161D9#5161D9

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

Color values

HEX#5161D9
RGBrgb(81, 97, 217)
HSLhsl(233, 64%, 58%)
HSVhsv(233, 63%, 85%)
CMYKcmyk(62.7%, 55.3%, 0%, 14.9%)
CIE-LABlab(46.05, 30.86, -63.57)
CIE-LCHlch(46.05, 70.66, 295.90°)
OKLaboklab(54.69% 0.0098 -0.1826)
OKLCHoklch(54.69% 0.183 273.1)
XYZxyz(20.1883, 15.3068, 67.5228)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161D9 #D9C951
analogous
#51A5D9 #5161D9 #8551D9
triadic
#5161D9 #D95161 #61D951
tetradic
#5161D9 #D951A5 #D9C951 #51D985
square
#5161D9 #D951A5 #D9C951 #51D985
split-complementary
#5161D9 #D98551 #A5D951
monochromatic
#1F2D90 #2A3CC2 #5161D9 #838FE4 #B5BCEF

Accessibility & contrast

On white

5.17
#5161D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5161D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161D9
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161D9#FFFFFF#000000##FFFFFF
##5161D91.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#0067D7
Tritanopia (blue-blind)
#007E93
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5161d9;
/* rgb */ color: rgb(81, 97, 217);
/* oklch */ color: oklch(54.7% 0.183 273.1);
Tailwind
colors: {
  custom: {
    50: '#8f8de6',
    500: '#5161d9',
    950: '#000000',
  },
}
SCSS
$custom: #5161d9;
$custom-light: #8f8de6;
$custom-dark: #000000;
JSON
{
  "hex": "#5161d9",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 217
  },
  "hsl": {
    "h": 232.941,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54692,
    "c": 0.1829,
    "h": 273.1
  },
  "luminance": 0.15308
}

Semantic roles & 50–950 ramp

primary
#5161D9
secondary
#DED8A8
accent
#D441E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5161D9

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

Preview Lab → · Contrast checker → · Palette generator →

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