#5161CA#5161CA

#5161CA is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.6% C 0.162 H 273.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5161CA
RGBrgb(81, 97, 202)
HSLhsl(232, 53%, 55%)
HSVhsv(232, 60%, 79%)
CMYKcmyk(59.9%, 52%, 0%, 20.8%)
CIE-LABlab(45.03, 25.80, -56.64)
CIE-LCHlch(45.03, 62.24, 294.49°)
OKLaboklab(53.6% 0.0089 -0.1622)
OKLCHoklch(53.6% 0.162 273.2)
XYZxyz(18.3252, 14.5615, 57.7106)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161CA #CABA51
analogous
#519DCA #5161CA #7D51CA
triadic
#5161CA #CA5161 #61CA51
tetradic
#5161CA #CA519D #CABA51 #51CA7D
square
#5161CA #CA519D #CABA51 #51CA7D
split-complementary
#5161CA #CA7D51 #9DCA51
monochromatic
#25317B #3443AA #5161CA #808CD8 #AFB6E7

Accessibility & contrast

On white

5.37
#5161CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5161CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161CA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161CA#FFFFFF#000000##FFFFFF
##5161CA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2470CE
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#00798C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5161ca;
/* rgb */ color: rgb(81, 97, 202);
/* oklch */ color: oklch(53.6% 0.162 273.2);
Tailwind
colors: {
  custom: {
    50: '#8d8ddb',
    500: '#5161ca',
    950: '#000000',
  },
}
SCSS
$custom: #5161ca;
$custom-light: #8d8ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5161ca",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 202
  },
  "hsl": {
    "h": 232.066,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.53598,
    "c": 0.16249,
    "h": 273.2
  },
  "luminance": 0.14563
}

Semantic roles & 50–950 ramp

primary
#5161CA
secondary
#D5CEA2
accent
#C94BDD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161CA

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

Preview Lab → · Contrast checker → · Palette generator →

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