#330C4D#330C4D

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

Color values

HEX#330C4D
RGBrgb(51, 12, 77)
HSLhsl(276, 73%, 17%)
HSVhsv(276, 84%, 30%)
CMYKcmyk(33.8%, 84.4%, 0%, 69.8%)
CIE-LABlab(12.62, 31.70, -31.37)
CIE-LCHlch(12.62, 44.60, 315.29°)
OKLaboklab(26.11% 0.0682 -0.0892)
OKLCHoklch(26.11% 0.112 307.4)
XYZxyz(2.8360, 1.5026, 7.1604)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C4D #264D0C
analogous
#120C4D #330C4D #4D0C47
triadic
#330C4D #4D330C #0C4D33
tetradic
#330C4D #4D120C #264D0C #0C474D
square
#330C4D #4D120C #264D0C #0C474D
split-complementary
#330C4D #474D0C #0C4D12
monochromatic
#12041A #12041A #330C4D #561482 #791DB7

Accessibility & contrast

On white

16.15
#330C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330C4D
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C4D#FFFFFF#000000##FFFFFF
##330C4D1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#2F1C2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330c4d;
/* rgb */ color: rgb(51, 12, 77);
/* oklch */ color: oklch(26.1% 0.112 307.4);
Tailwind
colors: {
  custom: {
    50: '#6e507f',
    500: '#330c4d',
    950: '#000000',
  },
}
SCSS
$custom: #330c4d;
$custom-light: #6e507f;
$custom-dark: #000000;
JSON
{
  "hex": "#330c4d",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 276,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26107,
    "c": 0.11229,
    "h": 307.4
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#330C4D
secondary
#51892C
accent
#F03882
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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