#51399B#51399B

#51399B is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.152 H 289.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#51399B
RGBrgb(81, 57, 155)
HSLhsl(255, 46%, 42%)
HSVhsv(255, 63%, 61%)
CMYKcmyk(47.7%, 63.2%, 0%, 39.2%)
CIE-LABlab(31.90, 35.49, -50.10)
CIE-LCHlch(31.90, 61.39, 305.31°)
OKLaboklab(42.8% 0.0512 -0.1433)
OKLCHoklch(42.8% 0.152 289.7)
XYZxyz(10.7712, 7.0417, 31.7956)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51399B #839B39
analogous
#39529B #51399B #82399B
triadic
#51399B #9B5139 #399B51
tetradic
#51399B #9B3952 #839B39 #399B82
square
#51399B #9B3952 #839B39 #399B82
split-complementary
#51399B #9B8239 #529B39
monochromatic
#221842 #3A296E #51399B #6D52BF #927FD0

Accessibility & contrast

On white

8.72
#51399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#51399B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51399B
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51399B#FFFFFF#000000##FFFFFF
##51399B1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#395064
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #51399b;
/* rgb */ color: rgb(81, 57, 155);
/* oklch */ color: oklch(42.8% 0.152 289.7);
Tailwind
colors: {
  custom: {
    50: '#8871b9',
    500: '#51399b',
    950: '#000000',
  },
}
SCSS
$custom: #51399b;
$custom-light: #8871b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51399b",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 254.694,
    "s": 46.226,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42802,
    "c": 0.15216,
    "h": 289.7
  },
  "luminance": 0.07042
}

Semantic roles & 50–950 ramp

primary
#51399B
secondary
#A9B977
accent
#D652B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51399B

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

Preview Lab → · Contrast checker → · Palette generator →

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