#330D4D#330D4D

#330D4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.111 H 307.2°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#330D4D
RGBrgb(51, 13, 77)
HSLhsl(276, 71%, 18%)
HSVhsv(276, 83%, 30%)
CMYKcmyk(33.8%, 83.1%, 0%, 69.8%)
CIE-LABlab(12.78, 31.25, -31.12)
CIE-LCHlch(12.78, 44.10, 315.12°)
OKLaboklab(26.22% 0.0672 -0.0884)
OKLCHoklch(26.22% 0.111 307.2)
XYZxyz(2.8484, 1.5275, 7.1645)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D4D #274D0D
analogous
#130D4D #330D4D #4D0D47
triadic
#330D4D #4D330D #0D4D33
tetradic
#330D4D #4D130D #274D0D #0D474D
square
#330D4D #4D130D #274D0D #0D474D
split-complementary
#330D4D #474D0D #0D4D13
monochromatic
#11041A #11041A #330D4D #561681 #781FB6

Accessibility & contrast

On white

16.09
#330D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330D4D
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D4D#FFFFFF#000000##FFFFFF
##330D4D1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#2F1D2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330d4d;
/* rgb */ color: rgb(51, 13, 77);
/* oklch */ color: oklch(26.2% 0.111 307.2);
Tailwind
colors: {
  custom: {
    50: '#6e507f',
    500: '#330d4d',
    950: '#000000',
  },
}
SCSS
$custom: #330d4d;
$custom-light: #6e507f;
$custom-dark: #000000;
JSON
{
  "hex": "#330d4d",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 275.625,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26218,
    "c": 0.11107,
    "h": 307.2
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#330D4D
secondary
#52882E
accent
#EE3A83
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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