#51487F#51487F

#51487F is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.6% C 0.089 H 289.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#51487F
RGBrgb(81, 72, 127)
HSLhsl(250, 28%, 39%)
HSVhsv(250, 43%, 50%)
CMYKcmyk(36.2%, 43.3%, 0%, 50.2%)
CIE-LABlab(33.81, 17.68, -29.86)
CIE-LCHlch(33.81, 34.70, 300.63°)
OKLaboklab(43.64% 0.03 -0.0839)
OKLCHoklch(43.64% 0.089 289.7)
XYZxyz(9.5405, 7.9161, 21.0999)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51487F #767F48
analogous
#485B7F #51487F #6D487F
triadic
#51487F #7F5148 #487F51
tetradic
#51487F #7F485B #767F48 #487F6D
square
#51487F #7F485B #767F48 #487F6D
split-complementary
#51487F #7F6D48 #5B7F48
monochromatic
#1F1C31 #383258 #51487F #6B60A5 #8F87BB

Accessibility & contrast

On white

8.13
#51487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#51487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51487F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51487F#FFFFFF#000000##FFFFFF
##51487F1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365181
Deuteranopia (green-blind)
#374E7E
Tritanopia (blue-blind)
#46525D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #51487f;
/* rgb */ color: rgb(81, 72, 127);
/* oklch */ color: oklch(43.6% 0.089 289.7);
Tailwind
colors: {
  custom: {
    50: '#847ba4',
    500: '#51487f',
    950: '#000000',
  },
}
SCSS
$custom: #51487f;
$custom-light: #847ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#51487f",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 249.818,
    "s": 27.638,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43636,
    "c": 0.08909,
    "h": 289.7
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#51487F
secondary
#A0A77C
accent
#C464B4
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B090F
muted
#7C7B7F

Preview Lab

Preview with #51487F

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

Preview Lab → · Contrast checker → · Palette generator →

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