#5151C2#5151C2

#5151C2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.172 H 278.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5151C2
RGBrgb(81, 81, 194)
HSLhsl(240, 48%, 54%)
HSVhsv(240, 58%, 76%)
CMYKcmyk(58.2%, 58.2%, 0%, 23.9%)
CIE-LABlab(40.46, 33.14, -59.40)
CIE-LCHlch(40.46, 68.02, 299.15°)
OKLaboklab(50.01% 0.0245 -0.1705)
OKLCHoklch(50.01% 0.172 278.2)
XYZxyz(16.0703, 11.5281, 52.4068)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151C2 #C2C251
analogous
#518AC2 #5151C2 #8A51C2
triadic
#5151C2 #C25151 #51C251
tetradic
#5151C2 #C2518A #C2C251 #51C28A
square
#5151C2 #C2518A #C2C251 #51C28A
split-complementary
#5151C2 #C28A51 #8AC251
monochromatic
#282871 #37379E #5151C2 #7E7ED2 #ACACE2

Accessibility & contrast

On white

6.35
#5151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5151C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151C2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151C2#FFFFFF#000000##FFFFFF
##5151C21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#026C81
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5151c2;
/* rgb */ color: rgb(81, 81, 194);
/* oklch */ color: oklch(50.0% 0.172 278.2);
Tailwind
colors: {
  custom: {
    50: '#8c82d5',
    500: '#5151c2',
    950: '#000000',
  },
}
SCSS
$custom: #5151c2;
$custom-light: #8c82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5151c2",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 240,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50007,
    "c": 0.17227,
    "h": 278.2
  },
  "luminance": 0.11529
}

Semantic roles & 50–950 ramp

primary
#5151C2
secondary
#D0D09F
accent
#D850D8
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5151C2

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

Preview Lab → · Contrast checker → · Palette generator →

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