#330D4E#330D4E

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

Color values

HEX#330D4E
RGBrgb(51, 13, 78)
HSLhsl(275, 71%, 18%)
HSVhsv(275, 83%, 31%)
CMYKcmyk(34.6%, 83.3%, 0%, 69.4%)
CIE-LABlab(12.87, 31.51, -31.66)
CIE-LCHlch(12.87, 44.67, 314.86°)
OKLaboklab(26.31% 0.067 -0.09)
OKLCHoklch(26.31% 0.112 306.6)
XYZxyz(2.8840, 1.5417, 7.3519)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D4E #284E0D
analogous
#120D4E #330D4E #4E0D48
triadic
#330D4E #4E330D #0D4E33
tetradic
#330D4E #4E120D #284E0D #0D484E
square
#330D4E #4E120D #284E0D #0D484E
split-complementary
#330D4E #484E0D #0D4E12
monochromatic
#11041A #11041A #330D4E #551682 #781EB7

Accessibility & contrast

On white

16.05
#330D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330D4E
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D4E#FFFFFF#000000##FFFFFF
##330D4E1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330d4e;
/* rgb */ color: rgb(51, 13, 78);
/* oklch */ color: oklch(26.3% 0.112 306.6);
Tailwind
colors: {
  custom: {
    50: '#6e5080',
    500: '#330d4e',
    950: '#000000',
  },
}
SCSS
$custom: #330d4e;
$custom-light: #6e5080;
$custom-dark: #000000;
JSON
{
  "hex": "#330d4e",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 275.077,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26308,
    "c": 0.1122,
    "h": 306.6
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#330D4E
secondary
#54892E
accent
#EE3A85
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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