#51397B#51397B

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

Color values

HEX#51397B
RGBrgb(81, 57, 123)
HSLhsl(262, 37%, 35%)
HSVhsv(262, 54%, 48%)
CMYKcmyk(34.1%, 53.7%, 0%, 51.8%)
CIE-LABlab(29.68, 26.10, -33.92)
CIE-LCHlch(29.68, 42.80, 307.58°)
OKLaboklab(40.46% 0.0513 -0.0957)
OKLCHoklch(40.46% 0.109 298.2)
XYZxyz(8.4307, 6.1056, 19.4694)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51397B #637B39
analogous
#39427B #51397B #72397B
triadic
#51397B #7B5139 #397B51
tetradic
#51397B #7B3942 #637B39 #397B72
square
#51397B #7B3942 #637B39 #397B72
split-complementary
#51397B #7B7239 #427B39
monochromatic
#1A1227 #352651 #51397B #6D4CA5 #8D71BD

Accessibility & contrast

On white

9.45
#51397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#51397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51397B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51397B#FFFFFF#000000##FFFFFF
##51397B1.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)
#21467D
Deuteranopia (green-blind)
#274579
Tritanopia (blue-blind)
#484654
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #51397b;
/* rgb */ color: rgb(81, 57, 123);
/* oklch */ color: oklch(40.5% 0.109 298.2);
Tailwind
colors: {
  custom: {
    50: '#8470a1',
    500: '#51397b',
    950: '#000000',
  },
}
SCSS
$custom: #51397b;
$custom-light: #8470a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51397b",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 261.818,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40456,
    "c": 0.10863,
    "h": 298.2
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#51397B
secondary
#90A669
accent
#CD5BA3
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #51397B

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

Preview Lab → · Contrast checker → · Palette generator →

#51397B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva