#51579D#51579D

#51579D is a mid, moderate blue. Relative luminance 0.110; OKLCH L 48.6% C 0.111 H 277.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#51579D
RGBrgb(81, 87, 157)
HSLhsl(235, 32%, 47%)
HSVhsv(235, 48%, 62%)
CMYKcmyk(48.4%, 44.6%, 0%, 38.4%)
CIE-LABlab(39.58, 17.29, -38.97)
CIE-LCHlch(39.58, 42.63, 293.93°)
OKLaboklab(48.57% 0.0149 -0.1104)
OKLCHoklch(48.57% 0.111 277.7)
XYZxyz(12.8855, 10.9993, 33.3359)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51579D #9D9751
analogous
#517D9D #51579D #71519D
triadic
#51579D #9D5157 #579D51
tetradic
#51579D #9D517D #9D9751 #519D71
square
#51579D #9D517D #9D9751 #519D71
split-complementary
#51579D #9D7151 #7D9D51
monochromatic
#272A4C #3C4175 #51579D #7479B7 #9CA0CC

Accessibility & contrast

On white

6.56
#51579D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#51579D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51579D
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51579D#FFFFFF#000000##FFFFFF
##51579D1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B60A0
Deuteranopia (green-blind)
#355A9B
Tritanopia (blue-blind)
#356672
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #51579d;
/* rgb */ color: rgb(81, 87, 157);
/* oklch */ color: oklch(48.6% 0.111 277.7);
Tailwind
colors: {
  custom: {
    50: '#8686ba',
    500: '#51579d',
    950: '#000000',
  },
}
SCSS
$custom: #51579d;
$custom-light: #8686ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51579d",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 235.263,
    "s": 31.933,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48573,
    "c": 0.11144,
    "h": 277.7
  },
  "luminance": 0.11
}

Semantic roles & 50–950 ramp

primary
#51579D
secondary
#B9B691
accent
#C060C8
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #51579D

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

Preview Lab → · Contrast checker → · Palette generator →

#51579D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva