#330F4A#330F4A

#330F4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.105 H 308.7°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#330F4A
RGBrgb(51, 15, 74)
HSLhsl(277, 66%, 17%)
HSVhsv(277, 80%, 29%)
CMYKcmyk(31.1%, 79.7%, 0%, 71%)
CIE-LABlab(12.86, 29.51, -28.92)
CIE-LCHlch(12.86, 41.32, 315.58°)
OKLaboklab(26.19% 0.0656 -0.082)
OKLCHoklch(26.19% 0.105 308.7)
XYZxyz(2.7718, 1.5399, 6.6285)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F4A #264A0F
analogous
#150F4A #330F4A #4A0F44
triadic
#330F4A #4A330F #0F4A33
tetradic
#330F4A #4A150F #264A0F #0F444A
square
#330F4A #4A150F #264A0F #0F444A
split-complementary
#330F4A #444A0F #0F4A15
monochromatic
#120519 #120519 #330F4A #56197D #7924B0

Accessibility & contrast

On white

16.06
#330F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F4A
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F4A#FFFFFF#000000##FFFFFF
##330F4A1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#022249
Tritanopia (blue-blind)
#2F1D2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330f4a;
/* rgb */ color: rgb(51, 15, 74);
/* oklch */ color: oklch(26.2% 0.105 308.7);
Tailwind
colors: {
  custom: {
    50: '#6e517d',
    500: '#330f4a',
    950: '#000000',
  },
}
SCSS
$custom: #330f4a;
$custom-light: #6e517d;
$custom-dark: #000000;
JSON
{
  "hex": "#330f4a",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 276.61,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26191,
    "c": 0.10501,
    "h": 308.7
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#330F4A
secondary
#518430
accent
#E93F81
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #330F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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