#5151C8#5151C8

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

Color values

HEX#5151C8
RGBrgb(81, 81, 200)
HSLhsl(240, 52%, 55%)
HSVhsv(240, 60%, 78%)
CMYKcmyk(59.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(40.90, 35.10, -62.16)
CIE-LCHlch(40.90, 71.39, 299.45°)
OKLaboklab(50.48% 0.0244 -0.1786)
OKLCHoklch(50.48% 0.18 277.8)
XYZxyz(16.7578, 11.8031, 56.0275)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151C8 #C8C851
analogous
#518CC8 #5151C8 #8C51C8
triadic
#5151C8 #C85151 #51C851
tetradic
#5151C8 #C8518C #C8C851 #51C88C
square
#5151C8 #C8518C #C8C851 #51C88C
split-complementary
#5151C8 #C88C51 #8CC851
monochromatic
#262679 #3535A7 #5151C8 #8080D7 #AEAEE5

Accessibility & contrast

On white

6.25
#5151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5151C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151C8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151C8#FFFFFF#000000##FFFFFF
##5151C81.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5151c8;
/* rgb */ color: rgb(81, 81, 200);
/* oklch */ color: oklch(50.5% 0.180 277.8);
Tailwind
colors: {
  custom: {
    50: '#8d82da',
    500: '#5151c8',
    950: '#000000',
  },
}
SCSS
$custom: #5151c8;
$custom-light: #8d82da;
$custom-dark: #000000;
JSON
{
  "hex": "#5151c8",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 240,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50476,
    "c": 0.1803,
    "h": 277.8
  },
  "luminance": 0.11804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5151C8

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

Preview Lab → · Contrast checker → · Palette generator →

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