#330D4F#330D4F

#330D4F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.113 H 306.1°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#330D4F
RGBrgb(51, 13, 79)
HSLhsl(275, 72%, 18%)
HSVhsv(275, 84%, 31%)
CMYKcmyk(35.4%, 83.5%, 0%, 69%)
CIE-LABlab(12.96, 31.77, -32.20)
CIE-LCHlch(12.96, 45.24, 314.61°)
OKLaboklab(26.4% 0.0667 -0.0916)
OKLCHoklch(26.4% 0.113 306.1)
XYZxyz(2.9201, 1.5562, 7.5422)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D4F #294F0D
analogous
#120D4F #330D4F #4F0D4A
triadic
#330D4F #4F330D #0D4F33
tetradic
#330D4F #4F120D #294F0D #0D4A4F
square
#330D4F #4F120D #294F0D #0D4A4F
split-complementary
#330D4F #4A4F0D #0D4F12
monochromatic
#11041A #11041A #330D4F #551684 #771EB8

Accessibility & contrast

On white

16.02
#330D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#330D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330D4F
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D4F#FFFFFF#000000##FFFFFF
##330D4F1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2E1E2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330d4f;
/* rgb */ color: rgb(51, 13, 79);
/* oklch */ color: oklch(26.4% 0.113 306.1);
Tailwind
colors: {
  custom: {
    50: '#6e5081',
    500: '#330d4f',
    950: '#000000',
  },
}
SCSS
$custom: #330d4f;
$custom-light: #6e5081;
$custom-dark: #000000;
JSON
{
  "hex": "#330d4f",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 274.545,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.264,
    "c": 0.11334,
    "h": 306.1
  },
  "luminance": 0.01556
}

Semantic roles & 50–950 ramp

primary
#330D4F
secondary
#558A2E
accent
#EE3986
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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