#51479A#51479A

#51479A is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.2% C 0.131 H 285.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#51479A
RGBrgb(81, 71, 154)
HSLhsl(247, 37%, 44%)
HSVhsv(247, 54%, 60%)
CMYKcmyk(47.4%, 53.9%, 0%, 39.6%)
CIE-LABlab(35.18, 26.54, -44.20)
CIE-LCHlch(35.18, 51.56, 300.98°)
OKLaboklab(45.2% 0.0347 -0.1259)
OKLCHoklch(45.2% 0.131 285.4)
XYZxyz(11.4776, 8.5884, 31.6185)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51479A #909A47
analogous
#47679A #51479A #7B479A
triadic
#51479A #9A5147 #479A51
tetradic
#51479A #9A4767 #909A47 #479A7B
square
#51479A #9A4767 #909A47 #479A7B
split-complementary
#51479A #9A7B47 #679A47
monochromatic
#252046 #3B3470 #51479A #7066B8 #9790CC

Accessibility & contrast

On white

7.73
#51479A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#51479A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51479A
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51479A#FFFFFF#000000##FFFFFF
##51479A1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E559D
Deuteranopia (green-blind)
#1B5098
Tritanopia (blue-blind)
#395969
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #51479a;
/* rgb */ color: rgb(81, 71, 154);
/* oklch */ color: oklch(45.2% 0.131 285.4);
Tailwind
colors: {
  custom: {
    50: '#877ab8',
    500: '#51479a',
    950: '#000000',
  },
}
SCSS
$custom: #51479a;
$custom-light: #877ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#51479a",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 154
  },
  "hsl": {
    "h": 247.229,
    "s": 36.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45196,
    "c": 0.13057,
    "h": 285.4
  },
  "luminance": 0.08589
}

Semantic roles & 50–950 ramp

primary
#51479A
secondary
#B1B785
accent
#CD5BBF
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #51479A

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

Preview Lab → · Contrast checker → · Palette generator →

#51479A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva