#51387F#51387F

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

Color values

HEX#51387F
RGBrgb(81, 56, 127)
HSLhsl(261, 39%, 36%)
HSVhsv(261, 56%, 50%)
CMYKcmyk(36.2%, 55.9%, 0%, 50.2%)
CIE-LABlab(29.69, 27.86, -36.41)
CIE-LCHlch(29.69, 45.85, 307.42°)
OKLaboklab(40.55% 0.053 -0.103)
OKLCHoklch(40.55% 0.116 297.2)
XYZxyz(8.6373, 6.1099, 20.7988)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51387F #667F38
analogous
#38427F #51387F #74387F
triadic
#51387F #7F5138 #387F51
tetradic
#51387F #7F3842 #667F38 #387F74
square
#51387F #7F3842 #667F38 #387F74
split-complementary
#51387F #7F7438 #427F38
monochromatic
#1B132A #362555 #51387F #6C4BA9 #8D71C0

Accessibility & contrast

On white

9.45
#51387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51387F
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51387F#FFFFFF#000000##FFFFFF
##51387F1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#22457D
Tritanopia (blue-blind)
#474656
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #51387f;
/* rgb */ color: rgb(81, 56, 127);
/* oklch */ color: oklch(40.5% 0.116 297.2);
Tailwind
colors: {
  custom: {
    50: '#856fa4',
    500: '#51387f',
    950: '#000000',
  },
}
SCSS
$custom: #51387f;
$custom-light: #856fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#51387f",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 261.127,
    "s": 38.798,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40547,
    "c": 0.11586,
    "h": 297.2
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#51387F
secondary
#93A969
accent
#CF59A5
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #51387F

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

Preview Lab → · Contrast checker → · Palette generator →

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