#3A0F47#3A0F47

#3A0F47 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.104 H 317.2°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#3A0F47
RGBrgb(58, 15, 71)
HSLhsl(286, 65%, 17%)
HSVhsv(286, 79%, 28%)
CMYKcmyk(18.3%, 78.9%, 0%, 72.2%)
CIE-LABlab(13.80, 30.47, -25.25)
CIE-LCHlch(13.80, 39.57, 320.35°)
OKLaboklab(27.03% 0.0766 -0.0709)
OKLCHoklch(27.03% 0.104 317.2)
XYZxyz(3.0529, 1.6962, 6.1266)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F47 #1C470F
analogous
#1E0F47 #3A0F47 #470F38
triadic
#3A0F47 #473A0F #0F473A
tetradic
#3A0F47 #471E0F #1C470F #0F3847
square
#3A0F47 #471E0F #1C470F #0F3847
split-complementary
#3A0F47 #38470F #0F471E
monochromatic
#150519 #150519 #3A0F47 #631A7A #8D24AC

Accessibility & contrast

On white

15.68
#3A0F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#3A0F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F47
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F47#FFFFFF#000000##FFFFFF
##3A0F471.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#102446
Tritanopia (blue-blind)
#391A29
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0f47;
/* rgb */ color: rgb(58, 15, 71);
/* oklch */ color: oklch(27.0% 0.104 317.2);
Tailwind
colors: {
  custom: {
    50: '#73527a',
    500: '#3a0f47',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f47;
$custom-light: #73527a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f47",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 286.071,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27033,
    "c": 0.10444,
    "h": 317.2
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#3A0F47
secondary
#438130
accent
#E84067
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0F47

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

Preview Lab → · Contrast checker → · Palette generator →

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