#3A1040#3A1040

#3A1040 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.095 H 322.5°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#3A1040
RGBrgb(58, 16, 64)
HSLhsl(293, 60%, 16%)
HSVhsv(293, 75%, 25%)
CMYKcmyk(9.4%, 75%, 0%, 74.9%)
CIE-LABlab(13.47, 28.39, -20.88)
CIE-LCHlch(13.47, 35.24, 323.67°)
OKLaboklab(26.64% 0.0757 -0.0582)
OKLCHoklch(26.64% 0.095 322.5)
XYZxyz(2.8555, 1.6404, 5.0157)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1040 #164010
analogous
#221040 #3A1040 #40102E
triadic
#3A1040 #403A10 #10403A
tetradic
#3A1040 #402210 #164010 #102E40
square
#3A1040 #402210 #164010 #102E40
split-complementary
#3A1040 #2E4010 #104022
monochromatic
#160618 #160618 #3A1040 #661C71 #9328A2

Accessibility & contrast

On white

15.81
#3A1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#3A1040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1040
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1040#FFFFFF#000000##FFFFFF
##3A10401.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F41
Deuteranopia (green-blind)
#17243F
Tritanopia (blue-blind)
#3B1826
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a1040;
/* rgb */ color: rgb(58, 16, 64);
/* oklch */ color: oklch(26.6% 0.095 322.5);
Tailwind
colors: {
  custom: {
    50: '#725275',
    500: '#3a1040',
    950: '#000000',
  },
}
SCSS
$custom: #3a1040;
$custom-light: #725275;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1040",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 292.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26635,
    "c": 0.09548,
    "h": 322.5
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#3A1040
secondary
#3B7A32
accent
#E34558
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A1040

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

Preview Lab → · Contrast checker → · Palette generator →

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