#5151D8#5151D8

#5151D8 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.8% C 0.201 H 276.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5151D8
RGBrgb(81, 81, 216)
HSLhsl(240, 63%, 58%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62.5%, 62.5%, 0%, 15.3%)
CIE-LABlab(42.14, 40.34, -69.36)
CIE-LCHlch(42.14, 80.24, 300.18°)
OKLaboklab(51.77% 0.0237 -0.1998)
OKLCHoklch(51.77% 0.201 276.8)
XYZxyz(18.7264, 12.5905, 66.3958)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D8 #D8D851
analogous
#5194D8 #5151D8 #9451D8
triadic
#5151D8 #D85151 #51D851
tetradic
#5151D8 #D85194 #D8D851 #51D894
square
#5151D8 #D85194 #D8D851 #51D894
split-complementary
#5151D8 #D89451 #94D851
monochromatic
#20208F #2B2BC1 #5151D8 #8383E3 #B5B5EE

Accessibility & contrast

On white

5.97
#5151D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5151D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D8#FFFFFF#000000##FFFFFF
##5151D81.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5151d8;
/* rgb */ color: rgb(81, 81, 216);
/* oklch */ color: oklch(51.8% 0.201 276.8);
Tailwind
colors: {
  custom: {
    50: '#9082e5',
    500: '#5151d8',
    950: '#000000',
  },
}
SCSS
$custom: #5151d8;
$custom-light: #9082e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d8",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 240,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51773,
    "c": 0.20119,
    "h": 276.8
  },
  "luminance": 0.12592
}

Semantic roles & 50–950 ramp

primary
#5151D8
secondary
#DDDDA8
accent
#E641E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151D8

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

Preview Lab → · Contrast checker → · Palette generator →

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