#330731#330731

#330731 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.090 H 330.0°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#330731
RGBrgb(51, 7, 49)
HSLhsl(303, 76%, 11%)
HSVhsv(303, 86%, 20%)
CMYKcmyk(0%, 86.3%, 3.9%, 80%)
CIE-LABlab(9.62, 27.49, -16.28)
CIE-LCHlch(9.62, 31.95, 329.36°)
OKLaboklab(23.28% 0.0778 -0.045)
OKLCHoklch(23.28% 0.09 330)
XYZxyz(1.9956, 1.0777, 3.0080)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330731 #073309
analogous
#1F0733 #330731 #33071B
triadic
#330731 #313307 #073133
tetradic
#330731 #331F07 #073309 #071B33
square
#330731 #331F07 #073309 #071B33
split-complementary
#330731 #1B3307 #07331F
monochromatic
#1B041A #1B041A #330731 #690E65 #9F1698

Accessibility & contrast

On white

17.28
#330731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#330731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330731
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330731#FFFFFF#000000##FFFFFF
##3307311.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031732
Deuteranopia (green-blind)
#141D30
Tritanopia (blue-blind)
#350D1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #330731;
/* rgb */ color: rgb(51, 7, 49);
/* oklch */ color: oklch(23.3% 0.090 330.0);
Tailwind
colors: {
  custom: {
    50: '#6d4c69',
    500: '#330731',
    950: '#000000',
  },
}
SCSS
$custom: #330731;
$custom-light: #6d4c69;
$custom-dark: #000000;
JSON
{
  "hex": "#330731",
  "rgb": {
    "r": 51,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 302.727,
    "s": 75.862,
    "l": 11.373
  },
  "oklch": {
    "l": 0.23275,
    "c": 0.08988,
    "h": 330
  },
  "luminance": 0.01078
}

Semantic roles & 50–950 ramp

primary
#330731
secondary
#237327
accent
#F23E35
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #330731

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

Preview Lab → · Contrast checker → · Palette generator →

#330731 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva