#5151D7#5151D7

#5151D7 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.7% C 0.200 H 276.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5151D7
RGBrgb(81, 81, 215)
HSLhsl(240, 63%, 58%)
HSVhsv(240, 62%, 84%)
CMYKcmyk(62.3%, 62.3%, 0%, 15.7%)
CIE-LABlab(42.06, 40.01, -68.92)
CIE-LCHlch(42.06, 79.69, 300.14°)
OKLaboklab(51.69% 0.0237 -0.1985)
OKLCHoklch(51.69% 0.2 276.8)
XYZxyz(18.5975, 12.5390, 65.7170)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D7 #D7D751
analogous
#5194D7 #5151D7 #9451D7
triadic
#5151D7 #D75151 #51D751
tetradic
#5151D7 #D75194 #D7D751 #51D794
square
#5151D7 #D75194 #D7D751 #51D794
split-complementary
#5151D7 #D79451 #94D751
monochromatic
#20208D #2C2CBF #5151D7 #8383E2 #B5B5EE

Accessibility & contrast

On white

5.99
#5151D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5151D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D7#FFFFFF#000000##FFFFFF
##5151D71.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5151d7;
/* rgb */ color: rgb(81, 81, 215);
/* oklch */ color: oklch(51.7% 0.200 276.8);
Tailwind
colors: {
  custom: {
    50: '#9082e4',
    500: '#5151d7',
    950: '#000000',
  },
}
SCSS
$custom: #5151d7;
$custom-light: #9082e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d7",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 240,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51691,
    "c": 0.1999,
    "h": 276.8
  },
  "luminance": 0.1254
}

Semantic roles & 50–950 ramp

primary
#5151D7
secondary
#DDDDA7
accent
#E642E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151D7

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

Preview Lab → · Contrast checker → · Palette generator →

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