#3A0C47#3A0C47

#3A0C47 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.7% C 0.108 H 317.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#3A0C47
RGBrgb(58, 12, 71)
HSLhsl(287, 71%, 16%)
HSVhsv(287, 83%, 28%)
CMYKcmyk(18.3%, 83.1%, 0%, 72.2%)
CIE-LABlab(13.34, 31.80, -26.00)
CIE-LCHlch(13.34, 41.08, 320.73°)
OKLaboklab(26.7% 0.0801 -0.0731)
OKLCHoklch(26.7% 0.108 317.6)
XYZxyz(3.0136, 1.6176, 6.1135)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C47 #19470C
analogous
#1D0C47 #3A0C47 #470C37
triadic
#3A0C47 #473A0C #0C473A
tetradic
#3A0C47 #471D0C #19470C #0C3747
square
#3A0C47 #471D0C #19470C #0C3747
split-complementary
#3A0C47 #37470C #0C471D
monochromatic
#15041A #15041A #3A0C47 #65157B #901EB0

Accessibility & contrast

On white

15.87
#3A0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0C47
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C47#FFFFFF#000000##FFFFFF
##3A0C471.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#0E2446
Tritanopia (blue-blind)
#391829
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a0c47;
/* rgb */ color: rgb(58, 12, 71);
/* oklch */ color: oklch(26.7% 0.108 317.6);
Tailwind
colors: {
  custom: {
    50: '#73507b',
    500: '#3a0c47',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c47;
$custom-light: #73507b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c47",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 286.78,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.267,
    "c": 0.10845,
    "h": 317.6
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#3A0C47
secondary
#3F832C
accent
#EE3A62
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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