#5161C3#5161C3

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

Color values

HEX#5161C3
RGBrgb(81, 97, 195)
HSLhsl(232, 49%, 54%)
HSVhsv(232, 58%, 76%)
CMYKcmyk(58.5%, 50.3%, 0%, 23.5%)
CIE-LABlab(44.57, 23.45, -53.33)
CIE-LCHlch(44.57, 58.26, 293.73°)
OKLaboklab(53.11% 0.0083 -0.1525)
OKLCHoklch(53.11% 0.153 273.1)
XYZxyz(17.5151, 14.2375, 53.4443)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161C3 #C3B351
analogous
#519AC3 #5161C3 #7A51C3
triadic
#5161C3 #C35161 #61C351
tetradic
#5161C3 #C3519A #C3B351 #51C37A
square
#5161C3 #C3519A #C3B351 #51C37A
split-complementary
#5161C3 #C37A51 #9AC351
monochromatic
#273272 #3746A0 #5161C3 #7F8AD3 #ACB4E2

Accessibility & contrast

On white

5.46
#5161C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5161C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161C3
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161C3#FFFFFF#000000##FFFFFF
##5161C31.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6FC7
Deuteranopia (green-blind)
#1765C1
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5161c3;
/* rgb */ color: rgb(81, 97, 195);
/* oklch */ color: oklch(53.1% 0.153 273.1);
Tailwind
colors: {
  custom: {
    50: '#8b8dd6',
    500: '#5161c3',
    950: '#000000',
  },
}
SCSS
$custom: #5161c3;
$custom-light: #8b8dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5161c3",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 195
  },
  "hsl": {
    "h": 231.579,
    "s": 48.718,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53108,
    "c": 0.15275,
    "h": 273.1
  },
  "luminance": 0.14239
}

Semantic roles & 50–950 ramp

primary
#5161C3
secondary
#D0C9A0
accent
#C550D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5161C3

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

Preview Lab → · Contrast checker → · Palette generator →

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