#3A0F4A#3A0F4A

#3A0F4A is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.3% C 0.108 H 315.1°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#3A0F4A
RGBrgb(58, 15, 74)
HSLhsl(284, 66%, 17%)
HSVhsv(284, 80%, 29%)
CMYKcmyk(21.6%, 79.7%, 0%, 71%)
CIE-LABlab(14.03, 31.18, -26.96)
CIE-LCHlch(14.03, 41.22, 319.14°)
OKLaboklab(27.27% 0.0763 -0.076)
OKLCHoklch(27.27% 0.108 315.1)
XYZxyz(3.1516, 1.7357, 6.6463)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F4A #1F4A0F
analogous
#1D0F4A #3A0F4A #4A0F3C
triadic
#3A0F4A #4A3A0F #0F4A3A
tetradic
#3A0F4A #4A1D0F #1F4A0F #0F3C4A
square
#3A0F4A #4A1D0F #1F4A0F #0F3C4A
split-complementary
#3A0F4A #3C4A0F #0F4A1D
monochromatic
#140519 #140519 #3A0F4A #62197D #8A24B0

Accessibility & contrast

On white

15.59
#3A0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F4A
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F4A#FFFFFF#000000##FFFFFF
##3A0F4A1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#0D2549
Tritanopia (blue-blind)
#391B2B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0f4a;
/* rgb */ color: rgb(58, 15, 74);
/* oklch */ color: oklch(27.3% 0.108 315.1);
Tailwind
colors: {
  custom: {
    50: '#73527d',
    500: '#3a0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f4a;
$custom-light: #73527d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f4a",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 283.729,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27269,
    "c": 0.10767,
    "h": 315.1
  },
  "luminance": 0.01736
}

Semantic roles & 50–950 ramp

primary
#3A0F4A
secondary
#478430
accent
#E93F6D
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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