#5151D2#5151D2

#5151D2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.193 H 277.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5151D2
RGBrgb(81, 81, 210)
HSLhsl(240, 59%, 57%)
HSVhsv(240, 61%, 82%)
CMYKcmyk(61.4%, 61.4%, 0%, 17.6%)
CIE-LABlab(41.67, 38.38, -66.69)
CIE-LCHlch(41.67, 76.94, 299.92°)
OKLaboklab(51.28% 0.024 -0.1919)
OKLCHoklch(51.28% 0.193 277.1)
XYZxyz(17.9649, 12.2859, 62.3850)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D2 #D2D251
analogous
#5192D2 #5151D2 #9251D2
triadic
#5151D2 #D25151 #51D251
tetradic
#5151D2 #D25192 #D2D251 #51D292
square
#5151D2 #D25192 #D2D251 #51D292
split-complementary
#5151D2 #D29251 #92D251
monochromatic
#232386 #2F2FB7 #5151D2 #8282DF #B2B2EB

Accessibility & contrast

On white

6.07
#5151D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5151D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D2#FFFFFF#000000##FFFFFF
##5151D21.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5151d2;
/* rgb */ color: rgb(81, 81, 210);
/* oklch */ color: oklch(51.3% 0.193 277.1);
Tailwind
colors: {
  custom: {
    50: '#8f82e1',
    500: '#5151d2',
    950: '#000000',
  },
}
SCSS
$custom: #5151d2;
$custom-light: #8f82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d2",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 240,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5128,
    "c": 0.19344,
    "h": 277.1
  },
  "luminance": 0.12287
}

Semantic roles & 50–950 ramp

primary
#5151D2
secondary
#DADAA5
accent
#E246E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5151D2

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

Preview Lab → · Contrast checker → · Palette generator →

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