#5161CC#5161CC

#5161CC is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.7% C 0.165 H 273.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5161CC
RGBrgb(81, 97, 204)
HSLhsl(232, 55%, 56%)
HSVhsv(232, 60%, 80%)
CMYKcmyk(60.3%, 52.5%, 0%, 20%)
CIE-LABlab(45.16, 26.47, -57.57)
CIE-LCHlch(45.16, 63.37, 294.69°)
OKLaboklab(53.74% 0.0091 -0.165)
OKLCHoklch(53.74% 0.165 273.2)
XYZxyz(18.5635, 14.6569, 58.9658)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161CC #CCBC51
analogous
#519ECC #5161CC #7E51CC
triadic
#5161CC #CC5161 #61CC51
tetradic
#5161CC #CC519E #CCBC51 #51CC7E
square
#5161CC #CC519E #CCBC51 #51CC7E
split-complementary
#5161CC #CC7E51 #9ECC51
monochromatic
#25307E #3343AD #5161CC #808CDA #B0B7E8

Accessibility & contrast

On white

5.34
#5161CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5161CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161CC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161CC#FFFFFF#000000##FFFFFF
##5161CC1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2070D0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5161cc;
/* rgb */ color: rgb(81, 97, 204);
/* oklch */ color: oklch(53.7% 0.165 273.2);
Tailwind
colors: {
  custom: {
    50: '#8d8ddc',
    500: '#5161cc',
    950: '#000000',
  },
}
SCSS
$custom: #5161cc;
$custom-light: #8d8ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#5161cc",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 204
  },
  "hsl": {
    "h": 232.195,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53741,
    "c": 0.16524,
    "h": 273.2
  },
  "luminance": 0.14658
}

Semantic roles & 50–950 ramp

primary
#5161CC
secondary
#D6CFA3
accent
#CB4ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161CC

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

Preview Lab → · Contrast checker → · Palette generator →

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