#5161CB#5161CB

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

Color values

HEX#5161CB
RGBrgb(81, 97, 203)
HSLhsl(232, 54%, 56%)
HSVhsv(232, 60%, 80%)
CMYKcmyk(60.1%, 52.2%, 0%, 20.4%)
CIE-LABlab(45.09, 26.14, -57.10)
CIE-LCHlch(45.09, 62.80, 294.59°)
OKLaboklab(53.67% 0.009 -0.1636)
OKLCHoklch(53.67% 0.164 273.2)
XYZxyz(18.4440, 14.6091, 58.3362)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161CB #CBBB51
analogous
#519ECB #5161CB #7E51CB
triadic
#5161CB #CB5161 #61CB51
tetradic
#5161CB #CB519E #CBBB51 #51CB7E
square
#5161CB #CB519E #CBBB51 #51CB7E
split-complementary
#5161CB #CB7E51 #9ECB51
monochromatic
#25317C #3343AC #5161CB #808CD9 #AFB7E7

Accessibility & contrast

On white

5.35
#5161CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5161CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161CB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161CB#FFFFFF#000000##FFFFFF
##5161CB1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2270CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5161cb;
/* rgb */ color: rgb(81, 97, 203);
/* oklch */ color: oklch(53.7% 0.164 273.2);
Tailwind
colors: {
  custom: {
    50: '#8d8ddb',
    500: '#5161cb',
    950: '#000000',
  },
}
SCSS
$custom: #5161cb;
$custom-light: #8d8ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5161cb",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 203
  },
  "hsl": {
    "h": 232.131,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5367,
    "c": 0.16387,
    "h": 273.2
  },
  "luminance": 0.14611
}

Semantic roles & 50–950 ramp

primary
#5161CB
secondary
#D5CFA3
accent
#CA4ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161CB

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

Preview Lab → · Contrast checker → · Palette generator →

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