#51587F#51587F

#51587F is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.1% C 0.064 H 275.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#51587F
RGBrgb(81, 88, 127)
HSLhsl(231, 22%, 41%)
HSVhsv(231, 36%, 50%)
CMYKcmyk(36.2%, 30.7%, 0%, 50.2%)
CIE-LABlab(38.31, 7.44, -22.81)
CIE-LCHlch(38.31, 24.00, 288.07°)
OKLaboklab(47.09% 0.0065 -0.0635)
OKLCHoklch(47.09% 0.064 275.9)
XYZxyz(10.7127, 10.2607, 21.4906)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51587F #7F7851
analogous
#516F7F #51587F #61517F
triadic
#51587F #7F5158 #587F51
tetradic
#51587F #7F516F #7F7851 #517F61
square
#51587F #7F516F #7F7851 #517F61
split-complementary
#51587F #7F6151 #6F7F51
monochromatic
#212434 #393E5A #51587F #6C74A1 #9197B9

Accessibility & contrast

On white

6.88
#51587F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#51587F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51587F
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51587F#FFFFFF#000000##FFFFFF
##51587F1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5C81
Deuteranopia (green-blind)
#49587E
Tritanopia (blue-blind)
#446066
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #51587f;
/* rgb */ color: rgb(81, 88, 127);
/* oklch */ color: oklch(47.1% 0.064 275.9);
Tailwind
colors: {
  custom: {
    50: '#8387a4',
    500: '#51587f',
    950: '#000000',
  },
}
SCSS
$custom: #51587f;
$custom-light: #8387a4;
$custom-dark: #000000;
JSON
{
  "hex": "#51587f",
  "rgb": {
    "r": 81,
    "g": 88,
    "b": 127
  },
  "hsl": {
    "h": 230.87,
    "s": 22.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47087,
    "c": 0.06382,
    "h": 275.9
  },
  "luminance": 0.10261
}

Semantic roles & 50–950 ramp

primary
#51587F
secondary
#A6A186
accent
#B269BF
background
#F8F8FA
surface
#EFEFF4
border
#CACACE
text
#0B0B0F
muted
#7C7C7F

Preview Lab

Preview with #51587F

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

Preview Lab → · Contrast checker → · Palette generator →

#51587F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva