#3A0D40#3A0D40

#3A0D40 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.3% C 0.100 H 322.8°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#3A0D40
RGBrgb(58, 13, 64)
HSLhsl(293, 66%, 15%)
HSVhsv(293, 80%, 25%)
CMYKcmyk(9.4%, 79.7%, 0%, 74.9%)
CIE-LABlab(12.97, 29.81, -21.68)
CIE-LCHlch(12.97, 36.86, 323.97°)
OKLaboklab(26.27% 0.0796 -0.0605)
OKLCHoklch(26.27% 0.1 322.8)
XYZxyz(2.8142, 1.5577, 5.0019)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D40 #13400D
analogous
#200D40 #3A0D40 #400D2D
triadic
#3A0D40 #403A0D #0D403A
tetradic
#3A0D40 #40200D #13400D #0D2D40
square
#3A0D40 #40200D #13400D #0D2D40
split-complementary
#3A0D40 #2D400D #0D4020
monochromatic
#170519 #170519 #3A0D40 #681773 #9622A6

Accessibility & contrast

On white

16.01
#3A0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#3A0D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0D40
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D40#FFFFFF#000000##FFFFFF
##3A0D401.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#15233F
Tritanopia (blue-blind)
#3B1625
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3a0d40;
/* rgb */ color: rgb(58, 13, 64);
/* oklch */ color: oklch(26.3% 0.100 322.8);
Tailwind
colors: {
  custom: {
    50: '#725175',
    500: '#3a0d40',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d40;
$custom-light: #725175;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d40",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 292.941,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26273,
    "c": 0.09995,
    "h": 322.8
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#3A0D40
secondary
#367C2D
accent
#E93F53
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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