#5161C8#5161C8

#5161C8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.5% C 0.160 H 273.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5161C8
RGBrgb(81, 97, 200)
HSLhsl(232, 52%, 55%)
HSVhsv(232, 60%, 78%)
CMYKcmyk(59.5%, 51.5%, 0%, 21.6%)
CIE-LABlab(44.90, 25.13, -55.70)
CIE-LCHlch(44.90, 61.10, 294.28°)
OKLaboklab(53.46% 0.0088 -0.1595)
OKLCHoklch(53.46% 0.16 273.2)
XYZxyz(18.0899, 14.4674, 56.4716)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161C8 #C8B851
analogous
#519CC8 #5161C8 #7D51C8
triadic
#5161C8 #C85161 #61C851
tetradic
#5161C8 #C8519C #C8B851 #51C87D
square
#5161C8 #C8519C #C8B851 #51C87D
split-complementary
#5161C8 #C87D51 #9CC851
monochromatic
#263179 #3544A7 #5161C8 #808BD7 #AEB5E5

Accessibility & contrast

On white

5.39
#5161C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5161C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161C8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161C8#FFFFFF#000000##FFFFFF
##5161C81.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2770CC
Deuteranopia (green-blind)
#0565C6
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5161c8;
/* rgb */ color: rgb(81, 97, 200);
/* oklch */ color: oklch(53.5% 0.160 273.2);
Tailwind
colors: {
  custom: {
    50: '#8c8dd9',
    500: '#5161c8',
    950: '#000000',
  },
}
SCSS
$custom: #5161c8;
$custom-light: #8c8dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5161c8",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 200
  },
  "hsl": {
    "h": 231.933,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53457,
    "c": 0.15971,
    "h": 273.2
  },
  "luminance": 0.14469
}

Semantic roles & 50–950 ramp

primary
#5161C8
secondary
#D3CDA1
accent
#C84CDB
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161C8

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

Preview Lab → · Contrast checker → · Palette generator →

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