#330F4C#330F4C

#330F4C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.107 H 307.4°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#330F4C
RGBrgb(51, 15, 76)
HSLhsl(275, 67%, 18%)
HSVhsv(275, 80%, 30%)
CMYKcmyk(32.9%, 80.3%, 0%, 70.2%)
CIE-LABlab(13.03, 30.03, -30.03)
CIE-LCHlch(13.03, 42.47, 315.00°)
OKLaboklab(26.37% 0.0652 -0.0852)
OKLCHoklch(26.37% 0.107 307.4)
XYZxyz(2.8403, 1.5673, 6.9890)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F4C #284C0F
analogous
#140F4C #330F4C #4C0F46
triadic
#330F4C #4C330F #0F4C33
tetradic
#330F4C #4C140F #284C0F #0F464C
square
#330F4C #4C140F #284C0F #0F464C
split-complementary
#330F4C #464C0F #0F4C14
monochromatic
#11051A #11051A #330F4C #55197F #7823B2

Accessibility & contrast

On white

15.99
#330F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F4C
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F4C#FFFFFF#000000##FFFFFF
##330F4C1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#2F1D2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #330f4c;
/* rgb */ color: rgb(51, 15, 76);
/* oklch */ color: oklch(26.4% 0.107 307.4);
Tailwind
colors: {
  custom: {
    50: '#6e517e',
    500: '#330f4c',
    950: '#000000',
  },
}
SCSS
$custom: #330f4c;
$custom-light: #6e517e;
$custom-dark: #000000;
JSON
{
  "hex": "#330f4c",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 275.41,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26365,
    "c": 0.10733,
    "h": 307.4
  },
  "luminance": 0.01567
}

Semantic roles & 50–950 ramp

primary
#330F4C
secondary
#548631
accent
#EA3E84
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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