#3A0D47#3A0D47

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

Color values

HEX#3A0D47
RGBrgb(58, 13, 71)
HSLhsl(287, 69%, 16%)
HSVhsv(287, 82%, 28%)
CMYKcmyk(18.3%, 81.7%, 0%, 72.2%)
CIE-LABlab(13.49, 31.37, -25.76)
CIE-LCHlch(13.49, 40.59, 320.61°)
OKLaboklab(26.81% 0.079 -0.0724)
OKLCHoklch(26.81% 0.107 317.5)
XYZxyz(3.0260, 1.6425, 6.1176)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D47 #1A470D
analogous
#1D0D47 #3A0D47 #470D37
triadic
#3A0D47 #473A0D #0D473A
tetradic
#3A0D47 #471D0D #1A470D #0D3747
square
#3A0D47 #471D0D #1A470D #0D3747
split-complementary
#3A0D47 #37470D #0D471D
monochromatic
#15051A #15051A #3A0D47 #64167B #8F20AE

Accessibility & contrast

On white

15.81
#3A0D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0D47
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D47#FFFFFF#000000##FFFFFF
##3A0D471.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#0F2446
Tritanopia (blue-blind)
#391929
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0d47;
/* rgb */ color: rgb(58, 13, 71);
/* oklch */ color: oklch(26.8% 0.107 317.5);
Tailwind
colors: {
  custom: {
    50: '#73517a',
    500: '#3a0d47',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d47;
$custom-light: #73517a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d47",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 71
  },
  "hsl": {
    "h": 286.552,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26806,
    "c": 0.10716,
    "h": 317.5
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#3A0D47
secondary
#40822D
accent
#EC3C63
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0D47

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

Preview Lab → · Contrast checker → · Palette generator →

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