#3A0840#3A0840

#3A0840 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.8% C 0.106 H 323.2°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#3A0840
RGBrgb(58, 8, 64)
HSLhsl(294, 78%, 14%)
HSVhsv(294, 88%, 25%)
CMYKcmyk(9.4%, 87.5%, 0%, 74.9%)
CIE-LABlab(12.24, 31.89, -22.84)
CIE-LCHlch(12.24, 39.22, 324.39°)
OKLaboklab(25.76% 0.0852 -0.0638)
OKLCHoklch(25.76% 0.106 323.2)
XYZxyz(2.7571, 1.4435, 4.9829)
Luminance0.0144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0840 #0E4008
analogous
#1E0840 #3A0840 #40082A
triadic
#3A0840 #403A08 #08403A
tetradic
#3A0840 #401E08 #0E4008 #082A40
square
#3A0840 #401E08 #0E4008 #082A40
split-complementary
#3A0840 #2A4008 #08401E
monochromatic
#19031B #19031B #3A0840 #6B0F76 #9D16AD

Accessibility & contrast

On white

16.30
#3A0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0840
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0840#FFFFFF#000000##FFFFFF
##3A08401.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#12223F
Tritanopia (blue-blind)
#3B1324
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0840;
/* rgb */ color: rgb(58, 8, 64);
/* oklch */ color: oklch(25.8% 0.106 323.2);
Tailwind
colors: {
  custom: {
    50: '#734e75',
    500: '#3a0840',
    950: '#000000',
  },
}
SCSS
$custom: #3a0840;
$custom-light: #734e75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0840",
  "rgb": {
    "r": 58,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 293.571,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25756,
    "c": 0.10647,
    "h": 323.2
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#3A0840
secondary
#2F7E25
accent
#F43448
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0840

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

Preview Lab → · Contrast checker → · Palette generator →

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