#5161D5#5161D5

#5161D5 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.4% C 0.178 H 273.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5161D5
RGBrgb(81, 97, 213)
HSLhsl(233, 61%, 58%)
HSVhsv(233, 62%, 84%)
CMYKcmyk(62%, 54.5%, 0%, 16.5%)
CIE-LABlab(45.77, 29.51, -61.74)
CIE-LCHlch(45.77, 68.43, 295.55°)
OKLaboklab(54.4% 0.0096 -0.1772)
OKLCHoklch(54.4% 0.178 273.1)
XYZxyz(19.6743, 15.1012, 64.8159)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161D5 #D5C551
analogous
#51A3D5 #5161D5 #8351D5
triadic
#5161D5 #D55161 #61D551
tetradic
#5161D5 #D551A3 #D5C551 #51D583
square
#5161D5 #D551A3 #D5C551 #51D583
split-complementary
#5161D5 #D58351 #A3D551
monochromatic
#212E8A #2D3FBC #5161D5 #828EE1 #B4BBED

Accessibility & contrast

On white

5.22
#5161D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5161D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161D5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161D5#FFFFFF#000000##FFFFFF
##5161D51.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0772D9
Deuteranopia (green-blind)
#0067D3
Tritanopia (blue-blind)
#007C91
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5161d5;
/* rgb */ color: rgb(81, 97, 213);
/* oklch */ color: oklch(54.4% 0.178 273.1);
Tailwind
colors: {
  custom: {
    50: '#8e8de3',
    500: '#5161d5',
    950: '#000000',
  },
}
SCSS
$custom: #5161d5;
$custom-light: #8e8de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5161d5",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 213
  },
  "hsl": {
    "h": 232.727,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54395,
    "c": 0.17751,
    "h": 273.1
  },
  "luminance": 0.15103
}

Semantic roles & 50–950 ramp

primary
#5161D5
secondary
#DBD5A6
accent
#D144E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #5161D5

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

Preview Lab → · Contrast checker → · Palette generator →

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