#3A0C46#3A0C46

#3A0C46 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.107 H 318.3°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#3A0C46
RGBrgb(58, 12, 70)
HSLhsl(288, 71%, 16%)
HSVhsv(288, 83%, 27%)
CMYKcmyk(17.1%, 82.9%, 0%, 72.5%)
CIE-LABlab(13.26, 31.57, -25.43)
CIE-LCHlch(13.26, 40.54, 321.15°)
OKLaboklab(26.62% 0.0802 -0.0714)
OKLCHoklch(26.62% 0.107 318.3)
XYZxyz(2.9817, 1.6048, 5.9459)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C46 #18460C
analogous
#1D0C46 #3A0C46 #460C35
triadic
#3A0C46 #463A0C #0C463A
tetradic
#3A0C46 #461D0C #18460C #0C3546
square
#3A0C46 #461D0C #18460C #0C3546
split-complementary
#3A0C46 #35460C #0C461D
monochromatic
#16041A #16041A #3A0C46 #65157A #911EAE

Accessibility & contrast

On white

15.90
#3A0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0C46
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C46#FFFFFF#000000##FFFFFF
##3A0C461.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#0F2445
Tritanopia (blue-blind)
#3A1828
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a0c46;
/* rgb */ color: rgb(58, 12, 70);
/* oklch */ color: oklch(26.6% 0.107 318.3);
Tailwind
colors: {
  custom: {
    50: '#73507a',
    500: '#3a0c46',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c46;
$custom-light: #73507a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c46",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 287.586,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2662,
    "c": 0.10743,
    "h": 318.3
  },
  "luminance": 0.01605
}

Semantic roles & 50–950 ramp

primary
#3A0C46
secondary
#3E822C
accent
#ED3A5F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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