#5161CF#5161CF

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

Color values

HEX#5161CF
RGBrgb(81, 97, 207)
HSLhsl(232, 57%, 56%)
HSVhsv(232, 61%, 81%)
CMYKcmyk(60.9%, 53.1%, 0%, 18.8%)
CIE-LABlab(45.36, 27.49, -58.97)
CIE-LCHlch(45.36, 65.06, 294.99°)
OKLaboklab(53.96% 0.0093 -0.1691)
OKLCHoklch(53.96% 0.169 273.1)
XYZxyz(18.9268, 14.8022, 60.8791)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5161CF #CFBF51
analogous
#51A0CF #5161CF #8051CF
triadic
#5161CF #CF5161 #61CF51
tetradic
#5161CF #CF51A0 #CFBF51 #51CF80
square
#5161CF #CF51A0 #CFBF51 #51CF80
split-complementary
#5161CF #CF8051 #A0CF51
monochromatic
#243082 #3141B2 #5161CF #818DDC #B1B8E9

Accessibility & contrast

On white

5.30
#5161CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5161CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5161CF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5161CF#FFFFFF#000000##FFFFFF
##5161CF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A71D3
Deuteranopia (green-blind)
#0066CD
Tritanopia (blue-blind)
#007B8F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5161cf;
/* rgb */ color: rgb(81, 97, 207);
/* oklch */ color: oklch(54.0% 0.169 273.1);
Tailwind
colors: {
  custom: {
    50: '#8d8dde',
    500: '#5161cf',
    950: '#000000',
  },
}
SCSS
$custom: #5161cf;
$custom-light: #8d8dde;
$custom-dark: #000000;
JSON
{
  "hex": "#5161cf",
  "rgb": {
    "r": 81,
    "g": 97,
    "b": 207
  },
  "hsl": {
    "h": 232.381,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.53957,
    "c": 0.16935,
    "h": 273.1
  },
  "luminance": 0.14804
}

Semantic roles & 50–950 ramp

primary
#5161CF
secondary
#D8D1A4
accent
#CD48E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5161CF

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

Preview Lab → · Contrast checker → · Palette generator →

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