#3A0841#3A0841

#3A0841 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.107 H 322.4°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#3A0841
RGBrgb(58, 8, 65)
HSLhsl(293, 78%, 14%)
HSVhsv(293, 88%, 25%)
CMYKcmyk(10.8%, 87.7%, 0%, 74.5%)
CIE-LABlab(12.32, 32.10, -23.43)
CIE-LCHlch(12.32, 39.74, 323.87°)
OKLaboklab(25.83% 0.0851 -0.0656)
OKLCHoklch(25.83% 0.107 322.4)
XYZxyz(2.7858, 1.4550, 5.1341)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0841 #0F4108
analogous
#1E0841 #3A0841 #41082C
triadic
#3A0841 #413A08 #08413A
tetradic
#3A0841 #411E08 #0F4108 #082C41
square
#3A0841 #411E08 #0F4108 #082C41
split-complementary
#3A0841 #2C4108 #08411E
monochromatic
#18031B #18031B #3A0841 #6B0F77 #9B15AE

Accessibility & contrast

On white

16.27
#3A0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3A0841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0841
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0841#FFFFFF#000000##FFFFFF
##3A08411.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#112240
Tritanopia (blue-blind)
#3B1324
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0841;
/* rgb */ color: rgb(58, 8, 65);
/* oklch */ color: oklch(25.8% 0.107 322.4);
Tailwind
colors: {
  custom: {
    50: '#734e76',
    500: '#3a0841',
    950: '#000000',
  },
}
SCSS
$custom: #3a0841;
$custom-light: #734e76;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0841",
  "rgb": {
    "r": 58,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 292.632,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25833,
    "c": 0.10742,
    "h": 322.4
  },
  "luminance": 0.01455
}

Semantic roles & 50–950 ramp

primary
#3A0841
secondary
#307F25
accent
#F5334B
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0841

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

Preview Lab → · Contrast checker → · Palette generator →

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