#5161CD#5161CD

#5161CD is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.8% C 0.167 H 273.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5161CD
RGBrgb(81, 97, 205)
HSLhsl(232, 55%, 56%)
HSVhsv(232, 60%, 80%)
CMYKcmyk(60.5%, 52.7%, 0%, 19.6%)
CIE-LABlab(45.23, 26.81, -58.04)
CIE-LCHlch(45.23, 63.93, 294.79°)
OKLaboklab(53.81% 0.0092 -0.1664)
OKLCHoklch(53.81% 0.167 273.1)
XYZxyz(18.6838, 14.7050, 59.5995)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161CD #CDBD51
analogous
#519FCD #5161CD #7F51CD
triadic
#5161CD #CD5161 #61CD51
tetradic
#5161CD #CD519F #CDBD51 #51CD7F
square
#5161CD #CD519F #CDBD51 #51CD7F
split-complementary
#5161CD #CD7F51 #9FCD51
monochromatic
#25307F #3242AF #5161CD #818CDB #B0B7E8

Accessibility & contrast

On white

5.33
#5161CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5161CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161CD
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161CD#FFFFFF#000000##FFFFFF
##5161CD1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E71D1
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#007A8E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5161cd;
/* rgb */ color: rgb(81, 97, 205);
/* oklch */ color: oklch(53.8% 0.167 273.1);
Tailwind
colors: {
  custom: {
    50: '#8d8ddd',
    500: '#5161cd',
    950: '#000000',
  },
}
SCSS
$custom: #5161cd;
$custom-light: #8d8ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#5161cd",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 205
  },
  "hsl": {
    "h": 232.258,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.53813,
    "c": 0.16662,
    "h": 273.1
  },
  "luminance": 0.14706
}

Semantic roles & 50–950 ramp

primary
#5161CD
secondary
#D7D0A3
accent
#CB49DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161CD

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

Preview Lab → · Contrast checker → · Palette generator →

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