#330D4A#330D4A

#330D4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.108 H 309.1°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#330D4A
RGBrgb(51, 13, 74)
HSLhsl(277, 70%, 17%)
HSVhsv(277, 82%, 29%)
CMYKcmyk(31.1%, 82.4%, 0%, 71%)
CIE-LABlab(12.52, 30.47, -29.47)
CIE-LCHlch(12.52, 42.39, 315.96°)
OKLaboklab(25.95% 0.0679 -0.0836)
OKLCHoklch(25.95% 0.108 309.1)
XYZxyz(2.7449, 1.4861, 6.6195)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D4A #244A0D
analogous
#150D4A #330D4A #4A0D43
triadic
#330D4A #4A330D #0D4A33
tetradic
#330D4A #4A150D #244A0D #0D434A
square
#330D4A #4A150D #244A0D #0D434A
split-complementary
#330D4A #434A0D #0D4A15
monochromatic
#12051A #12051A #330D4A #57167E #7B1FB2

Accessibility & contrast

On white

16.19
#330D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#330D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330D4A
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D4A#FFFFFF#000000##FFFFFF
##330D4A1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#301B2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330d4a;
/* rgb */ color: rgb(51, 13, 74);
/* oklch */ color: oklch(25.9% 0.108 309.1);
Tailwind
colors: {
  custom: {
    50: '#6e507d',
    500: '#330d4a',
    950: '#000000',
  },
}
SCSS
$custom: #330d4a;
$custom-light: #6e507d;
$custom-dark: #000000;
JSON
{
  "hex": "#330d4a",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 277.377,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2595,
    "c": 0.10768,
    "h": 309.1
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#330D4A
secondary
#4F852E
accent
#ED3B7E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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