#3A0C44#3A0C44

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

Color values

HEX#3A0C44
RGBrgb(58, 12, 68)
HSLhsl(289, 70%, 16%)
HSVhsv(289, 82%, 27%)
CMYKcmyk(14.7%, 82.4%, 0%, 73.3%)
CIE-LABlab(13.11, 31.13, -24.27)
CIE-LCHlch(13.11, 39.47, 322.05°)
OKLaboklab(26.46% 0.0804 -0.0681)
OKLCHoklch(26.46% 0.105 319.8)
XYZxyz(2.9197, 1.5800, 5.6189)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C44 #16440C
analogous
#1E0C44 #3A0C44 #440C32
triadic
#3A0C44 #443A0C #0C443A
tetradic
#3A0C44 #441E0C #16440C #0C3244
square
#3A0C44 #441E0C #16440C #0C3244
split-complementary
#3A0C44 #32440C #0C441E
monochromatic
#16051A #16051A #3A0C44 #661578 #931EAC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A0C44#FFFFFF#000000##FFFFFF
##3A0C441.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)
#001F46
Deuteranopia (green-blind)
#112343
Tritanopia (blue-blind)
#3A1727
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a0c44;
/* rgb */ color: rgb(58, 12, 68);
/* oklch */ color: oklch(26.5% 0.105 319.8);
Tailwind
colors: {
  custom: {
    50: '#735078',
    500: '#3a0c44',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c44;
$custom-light: #735078;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c44",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 289.286,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26464,
    "c": 0.10538,
    "h": 319.8
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#3A0C44
secondary
#3B802C
accent
#ED3B5B
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0C44

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

Preview Lab → · Contrast checker → · Palette generator →

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