#5151AE#5151AE

#5151AE is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.5% C 0.145 H 279.6°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5151AE
RGBrgb(81, 81, 174)
HSLhsl(240, 36%, 50%)
HSVhsv(240, 53%, 68%)
CMYKcmyk(53.4%, 53.4%, 0%, 31.8%)
CIE-LABlab(39.05, 26.60, -49.93)
CIE-LCHlch(39.05, 56.57, 298.04°)
OKLaboklab(48.52% 0.024 -0.1427)
OKLCHoklch(48.52% 0.145 279.6)
XYZxyz(13.9734, 10.6893, 41.3631)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151AE #AEAE51
analogous
#517FAE #5151AE #7F51AE
triadic
#5151AE #AE5151 #51AE51
tetradic
#5151AE #AE5180 #AEAE51 #51AE80
square
#5151AE #AE5180 #AEAE51 #51AE80
split-complementary
#5151AE #AE8051 #80AE51
monochromatic
#2A2A5A #3E3E84 #5151AE #7B7BC1 #A5A5D5

Accessibility & contrast

On white

6.69
#5151AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5151AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5151AE#FFFFFF#000000##FFFFFF
##5151AE1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D60B1
Deuteranopia (green-blind)
#0E58AC
Tritanopia (blue-blind)
#286677
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5151ae;
/* rgb */ color: rgb(81, 81, 174);
/* oklch */ color: oklch(48.5% 0.145 279.6);
Tailwind
colors: {
  custom: {
    50: '#8982c7',
    500: '#5151ae',
    950: '#000000',
  },
}
SCSS
$custom: #5151ae;
$custom-light: #8982c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5151ae",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 240,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.48516,
    "c": 0.14468,
    "h": 279.6
  },
  "luminance": 0.1069
}

Semantic roles & 50–950 ramp

primary
#5151AE
secondary
#C2C299
accent
#CC5BCC
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5151AE

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

Preview Lab → · Contrast checker → · Palette generator →

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