#5151DE#5151DE

#5151DE is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.209 H 276.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5151DE
RGBrgb(81, 81, 222)
HSLhsl(240, 68%, 59%)
HSVhsv(240, 64%, 87%)
CMYKcmyk(63.5%, 63.5%, 0%, 12.9%)
CIE-LABlab(42.62, 42.30, -72.00)
CIE-LCHlch(42.62, 83.50, 300.43°)
OKLaboklab(52.28% 0.0232 -0.2075)
OKLCHoklch(52.28% 0.209 276.4)
XYZxyz(19.5163, 12.9065, 70.5558)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151DE #DEDE51
analogous
#5198DE #5151DE #9851DE
triadic
#5151DE #DE5151 #51DE51
tetradic
#5151DE #DE5198 #DEDE51 #51DE98
square
#5151DE #DE5198 #DEDE51 #51DE98
split-complementary
#5151DE #DE9851 #98DE51
monochromatic
#1D1D98 #2727CB #5151DE #8484E8 #B8B8F2

Accessibility & contrast

On white

5.86
#5151DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5151DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151DE
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151DE#FFFFFF#000000##FFFFFF
##5151DE1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE2
Deuteranopia (green-blind)
#005EDB
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5151de;
/* rgb */ color: rgb(81, 81, 222);
/* oklch */ color: oklch(52.3% 0.209 276.4);
Tailwind
colors: {
  custom: {
    50: '#9182e9',
    500: '#5151de',
    950: '#000000',
  },
}
SCSS
$custom: #5151de;
$custom-light: #9182e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5151de",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 240,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52276,
    "c": 0.20883,
    "h": 276.4
  },
  "luminance": 0.12908
}

Semantic roles & 50–950 ramp

primary
#5151DE
secondary
#E1E1AA
accent
#EB3DEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151DE

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

Preview Lab → · Contrast checker → · Palette generator →

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