#5161AD#5161AD

#5161AD is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.7% C 0.121 H 272.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5161AD
RGBrgb(81, 97, 173)
HSLhsl(230, 36%, 50%)
HSVhsv(230, 53%, 68%)
CMYKcmyk(53.2%, 43.9%, 0%, 32.2%)
CIE-LABlab(43.23, 16.13, -42.64)
CIE-LCHlch(43.23, 45.59, 290.72°)
OKLaboklab(51.66% 0.0054 -0.1211)
OKLCHoklch(51.66% 0.121 272.5)
XYZxyz(15.2084, 13.3148, 41.2957)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161AD #AD9D51
analogous
#518FAD #5161AD #6F51AD
triadic
#5161AD #AD5161 #61AD51
tetradic
#5161AD #AD518F #AD9D51 #51AD6F
square
#5161AD #AD518F #AD9D51 #51AD6F
split-complementary
#5161AD #AD6F51 #8FAD51
monochromatic
#2A325A #3D4A83 #5161AD #7A87C1 #A4ACD4

Accessibility & contrast

On white

5.73
#5161AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5161AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161AD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161AD#FFFFFF#000000##FFFFFF
##5161AD1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416AB0
Deuteranopia (green-blind)
#3762AB
Tritanopia (blue-blind)
#26717E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5161ad;
/* rgb */ color: rgb(81, 97, 173);
/* oklch */ color: oklch(51.7% 0.121 272.5);
Tailwind
colors: {
  custom: {
    50: '#888dc6',
    500: '#5161ad',
    950: '#000000',
  },
}
SCSS
$custom: #5161ad;
$custom-light: #888dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5161ad",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 173
  },
  "hsl": {
    "h": 229.565,
    "s": 36.22,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.12124,
    "h": 272.5
  },
  "luminance": 0.13316
}

Semantic roles & 50–950 ramp

primary
#5161AD
secondary
#C2BA98
accent
#B95CCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5161AD

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

Preview Lab → · Contrast checker → · Palette generator →

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