#3A0336#3A0336

#3A0336 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.5% C 0.105 H 331.6°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#3A0336
RGBrgb(58, 3, 54)
HSLhsl(304, 90%, 12%)
HSVhsv(304, 95%, 23%)
CMYKcmyk(0%, 94.8%, 6.9%, 77.3%)
CIE-LABlab(10.79, 32.11, -18.00)
CIE-LCHlch(10.79, 36.81, 330.73°)
OKLaboklab(24.49% 0.092 -0.0497)
OKLCHoklch(24.49% 0.105 331.6)
XYZxyz(2.4433, 1.2312, 3.5983)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0336 #033A07
analogous
#23033A #3A0336 #3A031B
triadic
#3A0336 #363A03 #03363A
tetradic
#3A0336 #3A2303 #033A07 #031B3A
square
#3A0336 #3A2303 #033A07 #031B3A
split-complementary
#3A0336 #1B3A03 #033A23
monochromatic
#1D021B #1D021B #3A0336 #74066C #AE09A2

Accessibility & contrast

On white

16.85
#3A0336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#3A0336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0336
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0336#FFFFFF#000000##FFFFFF
##3A03361.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#162035
Tritanopia (blue-blind)
#3D0A1D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #3a0336;
/* rgb */ color: rgb(58, 3, 54);
/* oklch */ color: oklch(24.5% 0.105 331.6);
Tailwind
colors: {
  custom: {
    50: '#734c6d',
    500: '#3a0336',
    950: '#000000',
  },
}
SCSS
$custom: #3a0336;
$custom-light: #734c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0336",
  "rgb": {
    "r": 58,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 304.364,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.24493,
    "c": 0.10454,
    "h": 331.6
  },
  "luminance": 0.01231
}

Semantic roles & 50–950 ramp

primary
#3A0336
secondary
#1C7D23
accent
#FF3829
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#080107
muted
#7B777A

Preview Lab

Preview with #3A0336

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

Preview Lab → · Contrast checker → · Palette generator →

#3A0336 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva