#5151D5#5151D5

#5151D5 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.5% C 0.197 H 276.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5151D5
RGBrgb(81, 81, 213)
HSLhsl(240, 61%, 58%)
HSVhsv(240, 62%, 84%)
CMYKcmyk(62%, 62%, 0%, 16.5%)
CIE-LABlab(41.90, 39.36, -68.03)
CIE-LCHlch(41.90, 78.59, 300.05°)
OKLaboklab(51.53% 0.0238 -0.1959)
OKLCHoklch(51.53% 0.197 276.9)
XYZxyz(18.3421, 12.4368, 64.3719)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D5 #D5D551
analogous
#5193D5 #5151D5 #9351D5
triadic
#5151D5 #D55151 #51D551
tetradic
#5151D5 #D55193 #D5D551 #51D593
square
#5151D5 #D55193 #D5D551 #51D593
split-complementary
#5151D5 #D59351 #93D551
monochromatic
#21218A #2D2DBC #5151D5 #8282E1 #B4B4ED

Accessibility & contrast

On white

6.02
#5151D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5151D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D5
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D5#FFFFFF#000000##FFFFFF
##5151D51.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5151d5;
/* rgb */ color: rgb(81, 81, 213);
/* oklch */ color: oklch(51.5% 0.197 276.9);
Tailwind
colors: {
  custom: {
    50: '#8f82e3',
    500: '#5151d5',
    950: '#000000',
  },
}
SCSS
$custom: #5151d5;
$custom-light: #8f82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d5",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 240,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51525,
    "c": 0.19733,
    "h": 276.9
  },
  "luminance": 0.12438
}

Semantic roles & 50–950 ramp

primary
#5151D5
secondary
#DBDBA6
accent
#E444E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151D5

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

Preview Lab → · Contrast checker → · Palette generator →

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