#3A0D4F#3A0D4F

#3A0D4F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.116 H 312.2°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#3A0D4F
RGBrgb(58, 13, 79)
HSLhsl(281, 72%, 18%)
HSVhsv(281, 84%, 31%)
CMYKcmyk(26.6%, 83.5%, 0%, 69%)
CIE-LABlab(14.13, 33.25, -30.26)
CIE-LCHlch(14.13, 44.96, 317.70°)
OKLaboklab(27.46% 0.0777 -0.0856)
OKLCHoklch(27.46% 0.116 312.2)
XYZxyz(3.2999, 1.7520, 7.5600)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D4F #224F0D
analogous
#190D4F #3A0D4F #4F0D43
triadic
#3A0D4F #4F3A0D #0D4F3A
tetradic
#3A0D4F #4F190D #224F0D #0D434F
square
#3A0D4F #4F190D #224F0D #0D434F
split-complementary
#3A0D4F #434F0D #0D4F19
monochromatic
#13041A #13041A #3A0D4F #611684 #871EB8

Accessibility & contrast

On white

15.55
#3A0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0D4F
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D4F#FFFFFF#000000##FFFFFF
##3A0D4F1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#04254E
Tritanopia (blue-blind)
#371D2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0d4f;
/* rgb */ color: rgb(58, 13, 79);
/* oklch */ color: oklch(27.5% 0.116 312.2);
Tailwind
colors: {
  custom: {
    50: '#735181',
    500: '#3a0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d4f;
$custom-light: #735181;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d4f",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 280.909,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27463,
    "c": 0.11559,
    "h": 312.2
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#3A0D4F
secondary
#4B8A2E
accent
#EE3973
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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