#3A0C4B#3A0C4B

#3A0C4B is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.113 H 314.9°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#3A0C4B
RGBrgb(58, 12, 75)
HSLhsl(284, 72%, 17%)
HSVhsv(284, 84%, 29%)
CMYKcmyk(22.7%, 84%, 0%, 70.6%)
CIE-LABlab(13.65, 32.72, -28.27)
CIE-LCHlch(13.65, 43.24, 319.18°)
OKLaboklab(27.03% 0.0795 -0.0798)
OKLCHoklch(27.03% 0.113 314.9)
XYZxyz(3.1462, 1.6706, 6.8120)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C4B #1D4B0C
analogous
#1B0C4B #3A0C4B #4B0C3D
triadic
#3A0C4B #4B3A0C #0C4B3A
tetradic
#3A0C4B #4B1B0C #1D4B0C #0C3D4B
square
#3A0C4B #4B1B0C #1D4B0C #0C3D4B
split-complementary
#3A0C4B #3D4B0C #0C4B1B
monochromatic
#14041A #14041A #3A0C4B #631480 #8C1DB5

Accessibility & contrast

On white

15.74
#3A0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#3A0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C4B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C4B#FFFFFF#000000##FFFFFF
##3A0C4B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#09244A
Tritanopia (blue-blind)
#391A2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0c4b;
/* rgb */ color: rgb(58, 12, 75);
/* oklch */ color: oklch(27.0% 0.113 314.9);
Tailwind
colors: {
  custom: {
    50: '#73517e',
    500: '#3a0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c4b;
$custom-light: #73517e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c4b",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 283.81,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27025,
    "c": 0.11259,
    "h": 314.9
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#3A0C4B
secondary
#45872C
accent
#EF396A
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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