#5151AA#5151AA

#5151AA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.139 H 279.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5151AA
RGBrgb(81, 81, 170)
HSLhsl(240, 35%, 49%)
HSVhsv(240, 52%, 67%)
CMYKcmyk(52.4%, 52.4%, 0%, 33.3%)
CIE-LABlab(38.79, 25.30, -47.99)
CIE-LCHlch(38.79, 54.25, 297.80°)
OKLaboklab(48.23% 0.0238 -0.1369)
OKLCHoklch(48.23% 0.139 279.8)
XYZxyz(13.5892, 10.5357, 39.3399)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151AA #AAAA51
analogous
#517EAA #5151AA #7E51AA
triadic
#5151AA #AA5151 #51AA51
tetradic
#5151AA #AA517E #AAAA51 #51AA7E
square
#5151AA #AA517E #AAAA51 #51AA7E
split-complementary
#5151AA #AA7E51 #7EAA51
monochromatic
#2A2A57 #3D3D81 #5151AA #7979BF #A2A2D3

Accessibility & contrast

On white

6.76
#5151AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5151AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5151AA#FFFFFF#000000##FFFFFF
##5151AA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235FAD
Deuteranopia (green-blind)
#1858A8
Tritanopia (blue-blind)
#2C6575
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5151aa;
/* rgb */ color: rgb(81, 81, 170);
/* oklch */ color: oklch(48.2% 0.139 279.8);
Tailwind
colors: {
  custom: {
    50: '#8881c4',
    500: '#5151aa',
    950: '#000000',
  },
}
SCSS
$custom: #5151aa;
$custom-light: #8881c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5151aa",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 240,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48233,
    "c": 0.13899,
    "h": 279.8
  },
  "luminance": 0.10536
}

Semantic roles & 50–950 ramp

primary
#5151AA
secondary
#C0C097
accent
#CB5CCB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5151AA

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

Preview Lab → · Contrast checker → · Palette generator →

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