#5161CE#5161CE

#5161CE is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.9% C 0.168 H 273.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5161CE
RGBrgb(81, 97, 206)
HSLhsl(232, 56%, 56%)
HSVhsv(232, 61%, 81%)
CMYKcmyk(60.7%, 52.9%, 0%, 19.2%)
CIE-LABlab(45.29, 27.15, -58.50)
CIE-LCHlch(45.29, 64.50, 294.89°)
OKLaboklab(53.88% 0.0092 -0.1677)
OKLCHoklch(53.88% 0.168 273.1)
XYZxyz(18.8049, 14.7534, 60.2373)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161CE #CEBE51
analogous
#51A0CE #5161CE #8051CE
triadic
#5161CE #CE5161 #61CE51
tetradic
#5161CE #CE51A0 #CEBE51 #51CE80
square
#5161CE #CE51A0 #CEBE51 #51CE80
split-complementary
#5161CE #CE8051 #A0CE51
monochromatic
#243080 #3242B0 #5161CE #818CDB #B1B8E9

Accessibility & contrast

On white

5.32
#5161CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5161CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161CE
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161CE#FFFFFF#000000##FFFFFF
##5161CE1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5161ce;
/* rgb */ color: rgb(81, 97, 206);
/* oklch */ color: oklch(53.9% 0.168 273.1);
Tailwind
colors: {
  custom: {
    50: '#8d8dde',
    500: '#5161ce',
    950: '#000000',
  },
}
SCSS
$custom: #5161ce;
$custom-light: #8d8dde;
$custom-dark: #000000;
JSON
{
  "hex": "#5161ce",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 206
  },
  "hsl": {
    "h": 232.32,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.53884,
    "c": 0.16799,
    "h": 273.1
  },
  "luminance": 0.14755
}

Semantic roles & 50–950 ramp

primary
#5161CE
secondary
#D7D1A4
accent
#CC48DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161CE

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

Preview Lab → · Contrast checker → · Palette generator →

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