#3A0D42#3A0D42

#3A0D42 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.102 H 321.2°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#3A0D42
RGBrgb(58, 13, 66)
HSLhsl(291, 67%, 15%)
HSVhsv(291, 80%, 26%)
CMYKcmyk(12.1%, 80.3%, 0%, 74.1%)
CIE-LABlab(13.11, 30.25, -22.86)
CIE-LCHlch(13.11, 37.92, 322.92°)
OKLaboklab(26.42% 0.0795 -0.0639)
OKLCHoklch(26.42% 0.102 321.2)
XYZxyz(2.8721, 1.5809, 5.3071)
Luminance0.0158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D42 #15420D
analogous
#1F0D42 #3A0D42 #420D2F
triadic
#3A0D42 #423A0D #0D423A
tetradic
#3A0D42 #421F0D #15420D #0D2F42
square
#3A0D42 #421F0D #15420D #0D2F42
split-complementary
#3A0D42 #2F420D #0D421F
monochromatic
#16051A #16051A #3A0D42 #671775 #9421A8

Accessibility & contrast

On white

15.96
#3A0D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#3A0D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0D42
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D42#FFFFFF#000000##FFFFFF
##3A0D421.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F43
Deuteranopia (green-blind)
#132341
Tritanopia (blue-blind)
#3B1726
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a0d42;
/* rgb */ color: rgb(58, 13, 66);
/* oklch */ color: oklch(26.4% 0.102 321.2);
Tailwind
colors: {
  custom: {
    50: '#725177',
    500: '#3a0d42',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d42;
$custom-light: #725177;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d42",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 290.943,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26421,
    "c": 0.10199,
    "h": 321.2
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#3A0D42
secondary
#397E2D
accent
#EA3E58
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0D42

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

Preview Lab → · Contrast checker → · Palette generator →

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