#3A0C4F#3A0C4F

#3A0C4F is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.4% C 0.117 H 312.3°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#3A0C4F
RGBrgb(58, 12, 79)
HSLhsl(281, 74%, 18%)
HSVhsv(281, 85%, 31%)
CMYKcmyk(26.6%, 84.8%, 0%, 69%)
CIE-LABlab(13.98, 33.66, -30.49)
CIE-LCHlch(13.98, 45.42, 317.83°)
OKLaboklab(27.36% 0.0787 -0.0863)
OKLCHoklch(27.36% 0.117 312.3)
XYZxyz(3.2874, 1.7271, 7.5558)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C4F #214F0C
analogous
#180C4F #3A0C4F #4F0C42
triadic
#3A0C4F #4F3A0C #0C4F3A
tetradic
#3A0C4F #4F180C #214F0C #0C424F
square
#3A0C4F #4F180C #214F0C #0C424F
split-complementary
#3A0C4F #424F0C #0C4F18
monochromatic
#14041B #14041B #3A0C4F #611484 #881CB9

Accessibility & contrast

On white

15.61
#3A0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C4F
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C4F#FFFFFF#000000##FFFFFF
##3A0C4F1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#03244E
Tritanopia (blue-blind)
#371C2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0c4f;
/* rgb */ color: rgb(58, 12, 79);
/* oklch */ color: oklch(27.4% 0.117 312.3);
Tailwind
colors: {
  custom: {
    50: '#735181',
    500: '#3a0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c4f;
$custom-light: #735181;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c4f",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 281.194,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27362,
    "c": 0.11676,
    "h": 312.3
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#3A0C4F
secondary
#4A8B2C
accent
#F03871
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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