#3A0D4A#3A0D4A

#3A0D4A is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.110 H 315.4°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#3A0D4A
RGBrgb(58, 13, 74)
HSLhsl(284, 70%, 17%)
HSVhsv(284, 82%, 29%)
CMYKcmyk(21.6%, 82.4%, 0%, 71%)
CIE-LABlab(13.72, 32.07, -27.47)
CIE-LCHlch(13.72, 42.22, 319.42°)
OKLaboklab(27.05% 0.0786 -0.0774)
OKLCHoklch(27.05% 0.11 315.4)
XYZxyz(3.1247, 1.6819, 6.6373)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D4A #1D4A0D
analogous
#1B0D4A #3A0D4A #4A0D3C
triadic
#3A0D4A #4A3A0D #0D4A3A
tetradic
#3A0D4A #4A1B0D #1D4A0D #0D3C4A
square
#3A0D4A #4A1B0D #1D4A0D #0D3C4A
split-complementary
#3A0D4A #3C4A0D #0D4A1B
monochromatic
#14051A #14051A #3A0D4A #63167E #8C1FB2

Accessibility & contrast

On white

15.71
#3A0D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#3A0D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0D4A
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D4A#FFFFFF#000000##FFFFFF
##3A0D4A1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a0d4a;
/* rgb */ color: rgb(58, 13, 74);
/* oklch */ color: oklch(27.0% 0.110 315.4);
Tailwind
colors: {
  custom: {
    50: '#73517d',
    500: '#3a0d4a',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d4a;
$custom-light: #73517d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d4a",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 284.262,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27047,
    "c": 0.11031,
    "h": 315.4
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#3A0D4A
secondary
#45852E
accent
#ED3B6A
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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