#5151DD#5151DD

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

Color values

HEX#5151DD
RGBrgb(81, 81, 221)
HSLhsl(240, 67%, 59%)
HSVhsv(240, 63%, 87%)
CMYKcmyk(63.3%, 63.3%, 0%, 13.3%)
CIE-LABlab(42.54, 41.97, -71.56)
CIE-LCHlch(42.54, 82.96, 300.39°)
OKLaboklab(52.19% 0.0233 -0.2062)
OKLCHoklch(52.19% 0.208 276.4)
XYZxyz(19.3827, 12.8530, 69.8521)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151DD #DDDD51
analogous
#5197DD #5151DD #9751DD
triadic
#5151DD #DD5151 #51DD51
tetradic
#5151DD #DD5197 #DDDD51 #51DD97
square
#5151DD #DD5197 #DDDD51 #51DD97
split-complementary
#5151DD #DD9751 #97DD51
monochromatic
#1D1D96 #2727C9 #5151DD #8484E7 #B7B7F1

Accessibility & contrast

On white

5.88
#5151DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5151DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151DD
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151DD#FFFFFF#000000##FFFFFF
##5151DD1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE1
Deuteranopia (green-blind)
#005EDA
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5151dd;
/* rgb */ color: rgb(81, 81, 221);
/* oklch */ color: oklch(52.2% 0.208 276.4);
Tailwind
colors: {
  custom: {
    50: '#9182e9',
    500: '#5151dd',
    950: '#000000',
  },
}
SCSS
$custom: #5151dd;
$custom-light: #9182e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5151dd",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 240,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52192,
    "c": 0.20756,
    "h": 276.4
  },
  "luminance": 0.12855
}

Semantic roles & 50–950 ramp

primary
#5151DD
secondary
#E0E0AA
accent
#EA3EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151DD

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

Preview Lab → · Contrast checker → · Palette generator →

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