#51387E#51387E

#51387E is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.5% C 0.114 H 297.5°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#51387E
RGBrgb(81, 56, 126)
HSLhsl(261, 38%, 36%)
HSVhsv(261, 56%, 49%)
CMYKcmyk(35.7%, 55.6%, 0%, 50.6%)
CIE-LABlab(29.62, 27.58, -35.89)
CIE-LCHlch(29.62, 45.26, 307.54°)
OKLaboklab(40.48% 0.0529 -0.1015)
OKLCHoklch(40.48% 0.114 297.5)
XYZxyz(8.5725, 6.0839, 20.4573)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51387E #657E38
analogous
#38427E #51387E #74387E
triadic
#51387E #7E5138 #387E51
tetradic
#51387E #7E3842 #657E38 #387E74
square
#51387E #7E3842 #657E38 #387E74
split-complementary
#51387E #7E7438 #427E38
monochromatic
#1B1229 #362554 #51387E #6C4BA8 #8D71C0

Accessibility & contrast

On white

9.47
#51387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#51387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51387E
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51387E#FFFFFF#000000##FFFFFF
##51387E1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4680
Deuteranopia (green-blind)
#23457C
Tritanopia (blue-blind)
#474655
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #51387e;
/* rgb */ color: rgb(81, 56, 126);
/* oklch */ color: oklch(40.5% 0.114 297.5);
Tailwind
colors: {
  custom: {
    50: '#856fa4',
    500: '#51387e',
    950: '#000000',
  },
}
SCSS
$custom: #51387e;
$custom-light: #856fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#51387e",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 261.429,
    "s": 38.462,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40478,
    "c": 0.11447,
    "h": 297.5
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

primary
#51387E
secondary
#92A969
accent
#CE59A5
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #51387E

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

Preview Lab → · Contrast checker → · Palette generator →

#51387E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva