#3A0C40#3A0C40

#3A0C40 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.2% C 0.101 H 322.8°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#3A0C40
RGBrgb(58, 12, 64)
HSLhsl(293, 68%, 15%)
HSVhsv(293, 81%, 25%)
CMYKcmyk(9.4%, 81.2%, 0%, 74.9%)
CIE-LABlab(12.82, 30.25, -21.93)
CIE-LCHlch(12.82, 37.36, 324.06°)
OKLaboklab(26.16% 0.0808 -0.0612)
OKLCHoklch(26.16% 0.101 322.8)
XYZxyz(2.8017, 1.5328, 4.9978)
Luminance0.0153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C40 #12400C
analogous
#200C40 #3A0C40 #400C2C
triadic
#3A0C40 #403A0C #0C403A
tetradic
#3A0C40 #40200C #12400C #0C2C40
square
#3A0C40 #40200C #12400C #0C2C40
split-complementary
#3A0C40 #2C400C #0C4020
monochromatic
#17051A #17051A #3A0C40 #691674 #971FA7

Accessibility & contrast

On white

16.07
#3A0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#3A0C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C40
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C40#FFFFFF#000000##FFFFFF
##3A0C401.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#14233F
Tritanopia (blue-blind)
#3B1525
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3a0c40;
/* rgb */ color: rgb(58, 12, 64);
/* oklch */ color: oklch(26.2% 0.101 322.8);
Tailwind
colors: {
  custom: {
    50: '#725075',
    500: '#3a0c40',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c40;
$custom-light: #725075;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c40",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 293.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26162,
    "c": 0.10134,
    "h": 322.8
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#3A0C40
secondary
#357C2C
accent
#EB3D51
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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