#330838#330838

#330838 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.095 H 323.4°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#330838
RGBrgb(51, 8, 56)
HSLhsl(294, 75%, 13%)
HSVhsv(294, 86%, 22%)
CMYKcmyk(8.9%, 85.7%, 0%, 78%)
CIE-LABlab(10.28, 28.47, -20.34)
CIE-LCHlch(10.28, 34.98, 324.46°)
OKLaboklab(23.91% 0.0763 -0.0568)
OKLCHoklch(23.91% 0.095 323.4)
XYZxyz(2.1658, 1.1631, 3.8510)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330838 #0D3808
analogous
#1B0838 #330838 #380825
triadic
#330838 #383308 #083833
tetradic
#330838 #381B08 #0D3808 #082538
square
#330838 #381B08 #0D3808 #082538
split-complementary
#330838 #253808 #08381B
monochromatic
#18041B #18041B #330838 #64106E #9517A3

Accessibility & contrast

On white

17.04
#330838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#330838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330838
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330838#FFFFFF#000000##FFFFFF
##3308381.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#101E37
Tritanopia (blue-blind)
#34111F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #330838;
/* rgb */ color: rgb(51, 8, 56);
/* oklch */ color: oklch(23.9% 0.095 323.4);
Tailwind
colors: {
  custom: {
    50: '#6d4d6f',
    500: '#330838',
    950: '#000000',
  },
}
SCSS
$custom: #330838;
$custom-light: #6d4d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#330838",
  "rgb": {
    "r": 51,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 293.75,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23905,
    "c": 0.0951,
    "h": 323.4
  },
  "luminance": 0.01163
}

Semantic roles & 50–950 ramp

primary
#330838
secondary
#2E7725
accent
#F2364A
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #330838

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

Preview Lab → · Contrast checker → · Palette generator →

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