#5151BD#5151BD

#5151BD is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.6% C 0.165 H 278.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#5151BD
RGBrgb(81, 81, 189)
HSLhsl(240, 45%, 53%)
HSVhsv(240, 57%, 74%)
CMYKcmyk(57.1%, 57.1%, 0%, 25.9%)
CIE-LABlab(40.09, 31.50, -57.07)
CIE-LCHlch(40.09, 65.19, 298.89°)
OKLaboklab(49.62% 0.0245 -0.1637)
OKLCHoklch(49.62% 0.165 278.5)
XYZxyz(15.5182, 11.3072, 49.4990)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151BD #BDBD51
analogous
#5187BD #5151BD #8751BD
triadic
#5151BD #BD5151 #51BD51
tetradic
#5151BD #BD5187 #BDBD51 #51BD87
square
#5151BD #BD5187 #BDBD51 #51BD87
split-complementary
#5151BD #BD8751 #87BD51
monochromatic
#29296B #393997 #5151BD #7D7DCE #AAAADF

Accessibility & contrast

On white

6.44
#5151BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5151BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151BD
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151BD#FFFFFF#000000##FFFFFF
##5151BD1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C1
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#126A7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5151bd;
/* rgb */ color: rgb(81, 81, 189);
/* oklch */ color: oklch(49.6% 0.165 278.5);
Tailwind
colors: {
  custom: {
    50: '#8b82d2',
    500: '#5151bd',
    950: '#000000',
  },
}
SCSS
$custom: #5151bd;
$custom-light: #8b82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5151bd",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 240,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49623,
    "c": 0.16549,
    "h": 278.5
  },
  "luminance": 0.11308
}

Semantic roles & 50–950 ramp

primary
#5151BD
secondary
#CCCC9E
accent
#D553D5
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5151BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5151BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva