#330B40#330B40

#330B40 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.099 H 316.4°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#330B40
RGBrgb(51, 11, 64)
HSLhsl(285, 71%, 15%)
HSVhsv(285, 83%, 25%)
CMYKcmyk(20.3%, 82.8%, 0%, 74.9%)
CIE-LABlab(11.37, 28.93, -24.32)
CIE-LCHlch(11.37, 37.79, 319.95°)
OKLaboklab(24.87% 0.0719 -0.0684)
OKLCHoklch(24.87% 0.099 316.4)
XYZxyz(2.4102, 1.3134, 4.9761)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B40 #18400B
analogous
#190B40 #330B40 #400B33
triadic
#330B40 #40330B #0B4033
tetradic
#330B40 #40190B #18400B #0B3340
square
#330B40 #40190B #18400B #0B3340
split-complementary
#330B40 #33400B #0B4019
monochromatic
#15041A #15041A #330B40 #5D1474 #861DA8

Accessibility & contrast

On white

16.63
#330B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#330B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330B40
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B40#FFFFFF#000000##FFFFFF
##330B401.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#0B1F3F
Tritanopia (blue-blind)
#321624
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #330b40;
/* rgb */ color: rgb(51, 11, 64);
/* oklch */ color: oklch(24.9% 0.099 316.4);
Tailwind
colors: {
  custom: {
    50: '#6d4f75',
    500: '#330b40',
    950: '#000000',
  },
}
SCSS
$custom: #330b40;
$custom-light: #6d4f75;
$custom-dark: #000000;
JSON
{
  "hex": "#330b40",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 285.283,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24873,
    "c": 0.09926,
    "h": 316.4
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#330B40
secondary
#3E7D2A
accent
#ED3A66
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330B40

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

Preview Lab → · Contrast checker → · Palette generator →

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