#330D4C#330D4C

#330D4C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.110 H 307.8°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#330D4C
RGBrgb(51, 13, 76)
HSLhsl(276, 71%, 17%)
HSVhsv(276, 83%, 30%)
CMYKcmyk(32.9%, 82.9%, 0%, 70.2%)
CIE-LABlab(12.69, 30.99, -30.57)
CIE-LCHlch(12.69, 43.53, 315.39°)
OKLaboklab(26.13% 0.0674 -0.0868)
OKLCHoklch(26.13% 0.11 307.8)
XYZxyz(2.8134, 1.5135, 6.9800)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D4C #264C0D
analogous
#130D4C #330D4C #4C0D46
triadic
#330D4C #4C330D #0D4C33
tetradic
#330D4C #4C130D #264C0D #0D464C
square
#330D4C #4C130D #264C0D #0D464C
split-complementary
#330D4C #464C0D #0D4C13
monochromatic
#12041A #12041A #330D4C #561680 #791FB5

Accessibility & contrast

On white

16.12
#330D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#330D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330D4C
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D4C#FFFFFF#000000##FFFFFF
##330D4C1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2F1C2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330d4c;
/* rgb */ color: rgb(51, 13, 76);
/* oklch */ color: oklch(26.1% 0.110 307.8);
Tailwind
colors: {
  custom: {
    50: '#6e507f',
    500: '#330d4c',
    950: '#000000',
  },
}
SCSS
$custom: #330d4c;
$custom-light: #6e507f;
$custom-dark: #000000;
JSON
{
  "hex": "#330d4c",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 276.19,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26128,
    "c": 0.10994,
    "h": 307.8
  },
  "luminance": 0.01513
}

Semantic roles & 50–950 ramp

primary
#330D4C
secondary
#51872E
accent
#EE3A81
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330D4C

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

Preview Lab → · Contrast checker → · Palette generator →

#330D4C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva