#330B4A#330B4A

#330B4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.110 H 309.4°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#330B4A
RGBrgb(51, 11, 74)
HSLhsl(278, 74%, 17%)
HSVhsv(278, 85%, 29%)
CMYKcmyk(31.1%, 85.1%, 0%, 71%)
CIE-LABlab(12.21, 31.37, -29.98)
CIE-LCHlch(12.21, 43.39, 316.30°)
OKLaboklab(25.73% 0.07 -0.0851)
OKLCHoklch(25.73% 0.11 309.4)
XYZxyz(2.7207, 1.4376, 6.6114)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B4A #224A0B
analogous
#140B4A #330B4A #4A0B42
triadic
#330B4A #4A330B #0B4A33
tetradic
#330B4A #4A140B #224A0B #0B424A
square
#330B4A #4A140B #224A0B #0B424A
split-complementary
#330B4A #424A0B #0B4A14
monochromatic
#12041B #12041B #330B4A #58137F #7C1BB5

Accessibility & contrast

On white

16.31
#330B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#330B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330B4A
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B4A#FFFFFF#000000##FFFFFF
##330B4A1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#301A2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #330b4a;
/* rgb */ color: rgb(51, 11, 74);
/* oklch */ color: oklch(25.7% 0.110 309.4);
Tailwind
colors: {
  custom: {
    50: '#6e4f7d',
    500: '#330b4a',
    950: '#000000',
  },
}
SCSS
$custom: #330b4a;
$custom-light: #6e4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#330b4a",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 278.095,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25729,
    "c": 0.11016,
    "h": 309.4
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#330B4A
secondary
#4C862B
accent
#F1377B
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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