#330841#330841

#330841 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.104 H 316.1°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#330841
RGBrgb(51, 8, 65)
HSLhsl(285, 78%, 14%)
HSVhsv(285, 88%, 25%)
CMYKcmyk(21.5%, 87.7%, 0%, 74.5%)
CIE-LABlab(10.99, 30.49, -25.64)
CIE-LCHlch(10.99, 39.84, 319.94°)
OKLaboklab(24.63% 0.0751 -0.0723)
OKLCHoklch(24.63% 0.104 316.1)
XYZxyz(2.4061, 1.2592, 5.1163)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330841 #164108
analogous
#170841 #330841 #410833
triadic
#330841 #413308 #084133
tetradic
#330841 #411708 #164108 #083341
square
#330841 #411708 #164108 #083341
split-complementary
#330841 #334108 #084117
monochromatic
#15031B #15031B #330841 #5E0F77 #8915AE

Accessibility & contrast

On white

16.78
#330841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330841
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330841#FFFFFF#000000##FFFFFF
##3308411.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#071F40
Tritanopia (blue-blind)
#321524
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #330841;
/* rgb */ color: rgb(51, 8, 65);
/* oklch */ color: oklch(24.6% 0.104 316.1);
Tailwind
colors: {
  custom: {
    50: '#6d4d76',
    500: '#330841',
    950: '#000000',
  },
}
SCSS
$custom: #330841;
$custom-light: #6d4d76;
$custom-dark: #000000;
JSON
{
  "hex": "#330841",
  "rgb": {
    "r": 51,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 285.263,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24629,
    "c": 0.10425,
    "h": 316.1
  },
  "luminance": 0.01259
}

Semantic roles & 50–950 ramp

primary
#330841
secondary
#3B7F25
accent
#F53363
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330841

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

Preview Lab → · Contrast checker → · Palette generator →

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