#3A0C4D#3A0C4D

#3A0C4D is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.115 H 313.6°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#3A0C4D
RGBrgb(58, 12, 77)
HSLhsl(282, 73%, 17%)
HSVhsv(282, 84%, 30%)
CMYKcmyk(24.7%, 84.4%, 0%, 69.8%)
CIE-LABlab(13.82, 33.19, -29.39)
CIE-LCHlch(13.82, 44.33, 318.48°)
OKLaboklab(27.19% 0.0791 -0.083)
OKLCHoklch(27.19% 0.115 313.6)
XYZxyz(3.2157, 1.6984, 7.1782)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C4D #1F4D0C
analogous
#1A0C4D #3A0C4D #4D0C3F
triadic
#3A0C4D #4D3A0C #0C4D3A
tetradic
#3A0C4D #4D1A0C #1F4D0C #0C3F4D
square
#3A0C4D #4D1A0C #1F4D0C #0C3F4D
split-complementary
#3A0C4D #3F4D0C #0C4D1A
monochromatic
#14041A #14041A #3A0C4D #621482 #8A1DB7

Accessibility & contrast

On white

15.68
#3A0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#3A0C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C4D
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C4D#FFFFFF#000000##FFFFFF
##3A0C4D1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#06244C
Tritanopia (blue-blind)
#381B2C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0c4d;
/* rgb */ color: rgb(58, 12, 77);
/* oklch */ color: oklch(27.2% 0.115 313.6);
Tailwind
colors: {
  custom: {
    50: '#73517f',
    500: '#3a0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c4d;
$custom-light: #73517f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c4d",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 282.462,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27192,
    "c": 0.11467,
    "h": 313.6
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#3A0C4D
secondary
#47892C
accent
#F0386E
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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