#5161D2#5161D2

#5161D2 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.2% C 0.173 H 273.1°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5161D2
RGBrgb(81, 97, 210)
HSLhsl(233, 59%, 57%)
HSVhsv(233, 61%, 82%)
CMYKcmyk(61.4%, 53.8%, 0%, 17.6%)
CIE-LABlab(45.57, 28.50, -60.36)
CIE-LCHlch(45.57, 66.75, 295.27°)
OKLaboklab(54.18% 0.0095 -0.1732)
OKLCHoklch(54.18% 0.173 273.1)
XYZxyz(19.2970, 14.9503, 62.8291)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161D2 #D2C251
analogous
#51A2D2 #5161D2 #8251D2
triadic
#5161D2 #D25161 #61D251
tetradic
#5161D2 #D251A2 #D2C251 #51D282
square
#5161D2 #D251A2 #D2C251 #51D282
split-complementary
#5161D2 #D28251 #A2D251
monochromatic
#232F86 #2F40B7 #5161D2 #828DDF #B2B9EB

Accessibility & contrast

On white

5.26
#5161D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5161D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161D2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161D2#FFFFFF#000000##FFFFFF
##5161D21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1372D6
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5161d2;
/* rgb */ color: rgb(81, 97, 210);
/* oklch */ color: oklch(54.2% 0.173 273.1);
Tailwind
colors: {
  custom: {
    50: '#8e8de0',
    500: '#5161d2',
    950: '#000000',
  },
}
SCSS
$custom: #5161d2;
$custom-light: #8e8de0;
$custom-dark: #000000;
JSON
{
  "hex": "#5161d2",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 210
  },
  "hsl": {
    "h": 232.558,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54175,
    "c": 0.17345,
    "h": 273.1
  },
  "luminance": 0.14952
}

Semantic roles & 50–950 ramp

primary
#5161D2
secondary
#DAD3A5
accent
#CF46E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161D2

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

Preview Lab → · Contrast checker → · Palette generator →

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