#330C4F#330C4F

#330C4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.115 H 306.2°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#330C4F
RGBrgb(51, 12, 79)
HSLhsl(275, 74%, 18%)
HSVhsv(275, 85%, 31%)
CMYKcmyk(35.4%, 84.8%, 0%, 69%)
CIE-LABlab(12.81, 32.21, -32.46)
CIE-LCHlch(12.81, 45.73, 314.79°)
OKLaboklab(26.29% 0.0677 -0.0924)
OKLCHoklch(26.29% 0.115 306.2)
XYZxyz(2.9077, 1.5313, 7.5380)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C4F #284F0C
analogous
#110C4F #330C4F #4F0C49
triadic
#330C4F #4F330C #0C4F33
tetradic
#330C4F #4F110C #284F0C #0C494F
square
#330C4F #4F110C #284F0C #0C494F
split-complementary
#330C4F #494F0C #0C4F11
monochromatic
#11041B #11041B #330C4F #551484 #781CB9

Accessibility & contrast

On white

16.08
#330C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330C4F
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C4F#FFFFFF#000000##FFFFFF
##330C4F1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330c4f;
/* rgb */ color: rgb(51, 12, 79);
/* oklch */ color: oklch(26.3% 0.115 306.2);
Tailwind
colors: {
  custom: {
    50: '#6e5081',
    500: '#330c4f',
    950: '#000000',
  },
}
SCSS
$custom: #330c4f;
$custom-light: #6e5081;
$custom-dark: #000000;
JSON
{
  "hex": "#330c4f",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 274.925,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26291,
    "c": 0.11451,
    "h": 306.2
  },
  "luminance": 0.01531
}

Semantic roles & 50–950 ramp

primary
#330C4F
secondary
#548B2C
accent
#F03885
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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