#3A1340#3A1340

#3A1340 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.091 H 322.1°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#3A1340
RGBrgb(58, 19, 64)
HSLhsl(292, 54%, 16%)
HSVhsv(292, 70%, 25%)
CMYKcmyk(9.4%, 70.3%, 0%, 74.9%)
CIE-LABlab(14.03, 26.84, -19.99)
CIE-LCHlch(14.03, 33.46, 323.32°)
OKLaboklab(27.04% 0.0715 -0.0556)
OKLCHoklch(27.04% 0.091 322.1)
XYZxyz(2.9031, 1.7356, 5.0316)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1340 #194013
analogous
#241340 #3A1340 #401330
triadic
#3A1340 #403A13 #13403A
tetradic
#3A1340 #402413 #194013 #133040
square
#3A1340 #402413 #194013 #133040
split-complementary
#3A1340 #304013 #134024
monochromatic
#150718 #150718 #3A1340 #65216F #902F9E

Accessibility & contrast

On white

15.59
#3A1340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1340
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1340#FFFFFF#000000##FFFFFF
##3A13401.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#19253F
Tritanopia (blue-blind)
#3B1A27
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a1340;
/* rgb */ color: rgb(58, 19, 64);
/* oklch */ color: oklch(27.0% 0.091 322.1);
Tailwind
colors: {
  custom: {
    50: '#725475',
    500: '#3a1340',
    950: '#000000',
  },
}
SCSS
$custom: #3a1340;
$custom-light: #725475;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1340",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 292,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27039,
    "c": 0.09057,
    "h": 322.1
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#3A1340
secondary
#3F7936
accent
#DE4A5E
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080308
muted
#7B787B

Preview Lab

Preview with #3A1340

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

Preview Lab → · Contrast checker → · Palette generator →

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