#51308F#51308F

#51308F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.149 H 294.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#51308F
RGBrgb(81, 48, 143)
HSLhsl(261, 50%, 37%)
HSVhsv(261, 66%, 56%)
CMYKcmyk(43.4%, 66.4%, 0%, 43.9%)
CIE-LABlab(29.02, 37.22, -47.43)
CIE-LCHlch(29.02, 60.29, 308.13°)
OKLaboklab(40.42% 0.0626 -0.1354)
OKLCHoklch(40.42% 0.149 294.8)
XYZxyz(9.4069, 5.8462, 26.6141)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51308F #6E8F30
analogous
#303F8F #51308F #80308F
triadic
#51308F #8F5130 #308F51
tetradic
#51308F #8F303F #6E8F30 #308F80
square
#51308F #8F303F #6E8F30 #308F80
split-complementary
#51308F #8F8030 #3F8F30
monochromatic
#1D1133 #372161 #51308F #6B3FBD #8E6CCE

Accessibility & contrast

On white

9.68
#51308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#51308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51308F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51308F#FFFFFF#000000##FFFFFF
##51308F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#40465B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51308f;
/* rgb */ color: rgb(81, 48, 143);
/* oklch */ color: oklch(40.4% 0.149 294.8);
Tailwind
colors: {
  custom: {
    50: '#876ab0',
    500: '#51308f',
    950: '#000000',
  },
}
SCSS
$custom: #51308f;
$custom-light: #876ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#51308f",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 260.842,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40422,
    "c": 0.14916,
    "h": 294.8
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#51308F
secondary
#99B566
accent
#D94FA9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #51308F

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

Preview Lab → · Contrast checker → · Palette generator →

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