#3A0D4C#3A0D4C

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

Color values

HEX#3A0D4C
RGBrgb(58, 13, 76)
HSLhsl(283, 71%, 17%)
HSVhsv(283, 83%, 30%)
CMYKcmyk(23.7%, 82.9%, 0%, 70.2%)
CIE-LABlab(13.88, 32.54, -28.59)
CIE-LCHlch(13.88, 43.31, 318.69°)
OKLaboklab(27.21% 0.0782 -0.0807)
OKLCHoklch(27.21% 0.112 314.1)
XYZxyz(3.1931, 1.7093, 6.9978)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D4C #1F4C0D
analogous
#1A0D4C #3A0D4C #4C0D3F
triadic
#3A0D4C #4C3A0D #0D4C3A
tetradic
#3A0D4C #4C1A0D #1F4C0D #0D3F4C
square
#3A0D4C #4C1A0D #1F4C0D #0D3F4C
split-complementary
#3A0D4C #3F4C0D #0D4C1A
monochromatic
#14041A #14041A #3A0D4C #621680 #8A1FB5

Accessibility & contrast

On white

15.65
#3A0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0D4C
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D4C#FFFFFF#000000##FFFFFF
##3A0D4C1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#08244B
Tritanopia (blue-blind)
#381B2C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0d4c;
/* rgb */ color: rgb(58, 13, 76);
/* oklch */ color: oklch(27.2% 0.112 314.1);
Tailwind
colors: {
  custom: {
    50: '#73517e',
    500: '#3a0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d4c;
$custom-light: #73517e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d4c",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 282.857,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27211,
    "c": 0.11242,
    "h": 314.1
  },
  "luminance": 0.01709
}

Semantic roles & 50–950 ramp

primary
#3A0D4C
secondary
#47872E
accent
#EE3A6D
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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