#3A0C3E#3A0C3E

#3A0C3E is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.099 H 324.5°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#3A0C3E
RGBrgb(58, 12, 62)
HSLhsl(295, 68%, 15%)
HSVhsv(295, 81%, 24%)
CMYKcmyk(6.5%, 80.6%, 0%, 75.7%)
CIE-LABlab(12.67, 29.82, -20.74)
CIE-LCHlch(12.67, 36.32, 325.19°)
OKLaboklab(26.02% 0.0809 -0.0577)
OKLCHoklch(26.02% 0.099 324.5)
XYZxyz(2.7458, 1.5105, 4.7034)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C3E #103E0C
analogous
#210C3E #3A0C3E #3E0C29
triadic
#3A0C3E #3E3A0C #0C3E3A
tetradic
#3A0C3E #3E210C #103E0C #0C293E
square
#3A0C3E #3E210C #103E0C #0C293E
split-complementary
#3A0C3E #293E0C #0C3E21
monochromatic
#18051A #18051A #3A0C3E #6A1671 #9A20A5

Accessibility & contrast

On white

16.13
#3A0C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#3A0C3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0C3E
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C3E#FFFFFF#000000##FFFFFF
##3A0C3E1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3F
Deuteranopia (green-blind)
#15233D
Tritanopia (blue-blind)
#3B1424
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3a0c3e;
/* rgb */ color: rgb(58, 12, 62);
/* oklch */ color: oklch(26.0% 0.099 324.5);
Tailwind
colors: {
  custom: {
    50: '#725073',
    500: '#3a0c3e',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c3e;
$custom-light: #725073;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c3e",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 295.2,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26016,
    "c": 0.09935,
    "h": 324.5
  },
  "luminance": 0.0151
}

Semantic roles & 50–950 ramp

primary
#3A0C3E
secondary
#327A2C
accent
#EA3D4B
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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