#330B4C#330B4C

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

Color values

HEX#330B4C
RGBrgb(51, 11, 76)
HSLhsl(277, 75%, 17%)
HSVhsv(277, 86%, 30%)
CMYKcmyk(32.9%, 85.5%, 0%, 70.2%)
CIE-LABlab(12.38, 31.88, -31.08)
CIE-LCHlch(12.38, 44.52, 315.73°)
OKLaboklab(25.91% 0.0695 -0.0883)
OKLCHoklch(25.91% 0.112 308.2)
XYZxyz(2.7891, 1.4650, 6.9719)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B4C #244C0B
analogous
#120B4C #330B4C #4C0B45
triadic
#330B4C #4C330B #0B4C33
tetradic
#330B4C #4C120B #244C0B #0B454C
square
#330B4C #4C120B #244C0B #0B454C
split-complementary
#330B4C #454C0B #0B4C12
monochromatic
#12041B #12041B #330B4C #571381 #7B1AB7

Accessibility & contrast

On white

16.24
#330B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330B4C
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B4C#FFFFFF#000000##FFFFFF
##330B4C1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2F1B2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #330b4c;
/* rgb */ color: rgb(51, 11, 76);
/* oklch */ color: oklch(25.9% 0.112 308.2);
Tailwind
colors: {
  custom: {
    50: '#6e4f7f',
    500: '#330b4c',
    950: '#000000',
  },
}
SCSS
$custom: #330b4c;
$custom-light: #6e4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#330b4c",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 276.923,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2591,
    "c": 0.11235,
    "h": 308.2
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#330B4C
secondary
#4F882B
accent
#F1367E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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