#3A0C48#3A0C48

#3A0C48 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.8% C 0.109 H 316.9°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#3A0C48
RGBrgb(58, 12, 72)
HSLhsl(286, 71%, 16%)
HSVhsv(286, 83%, 28%)
CMYKcmyk(19.4%, 83.3%, 0%, 71.8%)
CIE-LABlab(13.41, 32.03, -26.57)
CIE-LCHlch(13.41, 41.62, 320.32°)
OKLaboklab(26.78% 0.0799 -0.0748)
OKLCHoklch(26.78% 0.109 316.9)
XYZxyz(3.0459, 1.6305, 6.2839)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C48 #1A480C
analogous
#1C0C48 #3A0C48 #480C38
triadic
#3A0C48 #483A0C #0C483A
tetradic
#3A0C48 #481C0C #1A480C #0C3848
square
#3A0C48 #481C0C #1A480C #0C3848
split-complementary
#3A0C48 #38480C #0C481C
monochromatic
#15041A #15041A #3A0C48 #64157C #8F1DB1

Accessibility & contrast

On white

15.84
#3A0C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0C48
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C48#FFFFFF#000000##FFFFFF
##3A0C481.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#0D2447
Tritanopia (blue-blind)
#391929
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a0c48;
/* rgb */ color: rgb(58, 12, 72);
/* oklch */ color: oklch(26.8% 0.109 316.9);
Tailwind
colors: {
  custom: {
    50: '#73517b',
    500: '#3a0c48',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c48;
$custom-light: #73517b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c48",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 286,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2678,
    "c": 0.10949,
    "h": 316.9
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#3A0C48
secondary
#40842C
accent
#EE3A64
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0C48

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

Preview Lab → · Contrast checker → · Palette generator →

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