#330239#330239

#330239 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.3% C 0.105 H 323.1°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#330239
RGBrgb(51, 2, 57)
HSLhsl(293, 93%, 12%)
HSVhsv(293, 96%, 22%)
CMYKcmyk(10.5%, 96.5%, 0%, 77.6%)
CIE-LABlab(9.34, 31.63, -22.57)
CIE-LCHlch(9.34, 38.85, 324.49°)
OKLaboklab(23.27% 0.0842 -0.0632)
OKLCHoklch(23.27% 0.105 323.1)
XYZxyz(2.1254, 1.0428, 3.9594)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330239 #083902
analogous
#180239 #330239 #390224
triadic
#330239 #393302 #023933
tetradic
#330239 #391802 #083902 #022439
square
#330239 #391802 #083902 #022439
split-complementary
#330239 #243902 #023918
monochromatic
#1A011E #1A011E #330239 #680474 #9D06AF

Accessibility & contrast

On white

17.38
#330239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#330239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330239
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330239#FFFFFF#000000##FFFFFF
##3302391.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#0B1C38
Tritanopia (blue-blind)
#340D1E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #330239;
/* rgb */ color: rgb(51, 2, 57);
/* oklch */ color: oklch(23.3% 0.105 323.1);
Tailwind
colors: {
  custom: {
    50: '#6d4a70',
    500: '#330239',
    950: '#000000',
  },
}
SCSS
$custom: #330239;
$custom-light: #6d4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#330239",
  "rgb": {
    "r": 51,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 293.455,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23266,
    "c": 0.10529,
    "h": 323.1
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#330239
secondary
#257D1A
accent
#FF2940
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #330239

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

Preview Lab → · Contrast checker → · Palette generator →

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