#3A0C4C#3A0C4C

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

Color values

HEX#3A0C4C
RGBrgb(58, 12, 76)
HSLhsl(283, 73%, 17%)
HSVhsv(283, 84%, 30%)
CMYKcmyk(23.7%, 84.2%, 0%, 70.2%)
CIE-LABlab(13.74, 32.96, -28.83)
CIE-LCHlch(13.74, 43.79, 318.82°)
OKLaboklab(27.11% 0.0793 -0.0814)
OKLCHoklch(27.11% 0.114 314.2)
XYZxyz(3.1807, 1.6844, 6.9936)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C4C #1E4C0C
analogous
#1A0C4C #3A0C4C #4C0C3E
triadic
#3A0C4C #4C3A0C #0C4C3A
tetradic
#3A0C4C #4C1A0C #1E4C0C #0C3E4C
square
#3A0C4C #4C1A0C #1E4C0C #0C3E4C
split-complementary
#3A0C4C #3E4C0C #0C4C1A
monochromatic
#14041A #14041A #3A0C4C #621481 #8B1DB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A0C4C#FFFFFF#000000##FFFFFF
##3A0C4C1.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)
#00214E
Deuteranopia (green-blind)
#07244B
Tritanopia (blue-blind)
#381B2C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0c4c;
/* rgb */ color: rgb(58, 12, 76);
/* oklch */ color: oklch(27.1% 0.114 314.2);
Tailwind
colors: {
  custom: {
    50: '#73517e',
    500: '#3a0c4c',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c4c;
$custom-light: #73517e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c4c",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 283.125,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27108,
    "c": 0.11364,
    "h": 314.2
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#3A0C4C
secondary
#46882C
accent
#EF386C
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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