#5151C0#5151C0

#5151C0 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.170 H 278.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5151C0
RGBrgb(81, 81, 192)
HSLhsl(240, 47%, 54%)
HSVhsv(240, 58%, 75%)
CMYKcmyk(57.8%, 57.8%, 0%, 24.7%)
CIE-LABlab(40.31, 32.48, -58.47)
CIE-LCHlch(40.31, 66.89, 299.05°)
OKLaboklab(49.85% 0.0245 -0.1678)
OKLCHoklch(49.85% 0.17 278.3)
XYZxyz(15.8472, 11.4388, 51.2318)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151C0 #C0C051
analogous
#5188C0 #5151C0 #8851C0
triadic
#5151C0 #C05151 #51C051
tetradic
#5151C0 #C05188 #C0C051 #51C088
square
#5151C0 #C05188 #C0C051 #51C088
split-complementary
#5151C0 #C08851 #88C051
monochromatic
#28286F #38389B #5151C0 #7E7ED0 #ABABE1

Accessibility & contrast

On white

6.39
#5151C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5151C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151C0
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151C0#FFFFFF#000000##FFFFFF
##5151C01.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C4
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#096B80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5151c0;
/* rgb */ color: rgb(81, 81, 192);
/* oklch */ color: oklch(49.9% 0.170 278.3);
Tailwind
colors: {
  custom: {
    50: '#8c82d4',
    500: '#5151c0',
    950: '#000000',
  },
}
SCSS
$custom: #5151c0;
$custom-light: #8c82d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5151c0",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 192
  },
  "hsl": {
    "h": 240,
    "s": 46.835,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49852,
    "c": 0.16957,
    "h": 278.3
  },
  "luminance": 0.1144
}

Semantic roles & 50–950 ramp

primary
#5151C0
secondary
#CECE9F
accent
#D651D6
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5151C0

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

Preview Lab → · Contrast checker → · Palette generator →

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