#3A0C4A#3A0C4A

#3A0C4A is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.9% C 0.112 H 315.5°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#3A0C4A
RGBrgb(58, 12, 74)
HSLhsl(285, 72%, 17%)
HSVhsv(285, 84%, 29%)
CMYKcmyk(21.6%, 83.8%, 0%, 71%)
CIE-LABlab(13.57, 32.49, -27.71)
CIE-LCHlch(13.57, 42.70, 319.54°)
OKLaboklab(26.94% 0.0796 -0.0781)
OKLCHoklch(26.94% 0.112 315.5)
XYZxyz(3.1122, 1.6570, 6.6331)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C4A #1C4A0C
analogous
#1B0C4A #3A0C4A #4A0C3B
triadic
#3A0C4A #4A3A0C #0C4A3A
tetradic
#3A0C4A #4A1B0C #1C4A0C #0C3B4A
square
#3A0C4A #4A1B0C #1C4A0C #0C3B4A
split-complementary
#3A0C4A #3B4A0C #0C4A1B
monochromatic
#15041A #15041A #3A0C4A #63157F #8D1DB3

Accessibility & contrast

On white

15.77
#3A0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#3A0C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C4A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C4A#FFFFFF#000000##FFFFFF
##3A0C4A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#0A2449
Tritanopia (blue-blind)
#391A2A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0c4a;
/* rgb */ color: rgb(58, 12, 74);
/* oklch */ color: oklch(26.9% 0.112 315.5);
Tailwind
colors: {
  custom: {
    50: '#73517d',
    500: '#3a0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c4a;
$custom-light: #73517d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c4a",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 284.516,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26943,
    "c": 0.11156,
    "h": 315.5
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#3A0C4A
secondary
#43862C
accent
#EF3968
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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