#330940#330940

#330940 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.102 H 316.7°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#330940
RGBrgb(51, 9, 64)
HSLhsl(286, 75%, 14%)
HSVhsv(286, 86%, 25%)
CMYKcmyk(20.3%, 85.9%, 0%, 74.9%)
CIE-LABlab(11.06, 29.81, -24.82)
CIE-LCHlch(11.06, 38.79, 320.22°)
OKLaboklab(24.65% 0.0741 -0.0699)
OKLCHoklch(24.65% 0.102 316.7)
XYZxyz(2.3882, 1.2694, 4.9687)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330940 #164009
analogous
#180940 #330940 #400932
triadic
#330940 #403309 #094033
tetradic
#330940 #401809 #164009 #093240
square
#330940 #401809 #164009 #093240
split-complementary
#330940 #324009 #094018
monochromatic
#15041B #15041B #330940 #5E1176 #8918AB

Accessibility & contrast

On white

16.75
#330940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#330940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330940
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330940#FFFFFF#000000##FFFFFF
##3309401.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#321524
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #330940;
/* rgb */ color: rgb(51, 9, 64);
/* oklch */ color: oklch(24.7% 0.102 316.7);
Tailwind
colors: {
  custom: {
    50: '#6d4e75',
    500: '#330940',
    950: '#000000',
  },
}
SCSS
$custom: #330940;
$custom-light: #6d4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#330940",
  "rgb": {
    "r": 51,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 285.818,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24654,
    "c": 0.1019,
    "h": 316.7
  },
  "luminance": 0.01269
}

Semantic roles & 50–950 ramp

primary
#330940
secondary
#3B7E27
accent
#F23662
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330940

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

Preview Lab → · Contrast checker → · Palette generator →

#330940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva