#5151C7#5151C7

#5151C7 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.179 H 277.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5151C7
RGBrgb(81, 81, 199)
HSLhsl(240, 51%, 55%)
HSVhsv(240, 59%, 78%)
CMYKcmyk(59.3%, 59.3%, 0%, 22%)
CIE-LABlab(40.83, 34.78, -61.70)
CIE-LCHlch(40.83, 70.83, 299.41°)
OKLaboklab(50.4% 0.0244 -0.1773)
OKLCHoklch(50.4% 0.179 277.8)
XYZxyz(16.6413, 11.7565, 55.4141)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151C7 #C7C751
analogous
#518CC7 #5151C7 #8C51C7
triadic
#5151C7 #C75151 #51C751
tetradic
#5151C7 #C7518C #C7C751 #51C78C
square
#5151C7 #C7518C #C7C751 #51C78C
split-complementary
#5151C7 #C78C51 #8CC751
monochromatic
#262677 #3535A6 #5151C7 #7F7FD6 #AEAEE5

Accessibility & contrast

On white

6.27
#5151C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5151C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151C7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151C7#FFFFFF#000000##FFFFFF
##5151C71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5151c7;
/* rgb */ color: rgb(81, 81, 199);
/* oklch */ color: oklch(50.4% 0.179 277.8);
Tailwind
colors: {
  custom: {
    50: '#8d82d9',
    500: '#5151c7',
    950: '#000000',
  },
}
SCSS
$custom: #5151c7;
$custom-light: #8d82d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5151c7",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 240,
    "s": 51.304,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50397,
    "c": 0.17897,
    "h": 277.8
  },
  "luminance": 0.11758
}

Semantic roles & 50–950 ramp

primary
#5151C7
secondary
#D3D3A1
accent
#DB4DDB
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5151C7

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

Preview Lab → · Contrast checker → · Palette generator →

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