#3A0838#3A0838

#3A0838 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.099 H 329.8°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#3A0838
RGBrgb(58, 8, 56)
HSLhsl(302, 76%, 13%)
HSVhsv(302, 86%, 23%)
CMYKcmyk(0%, 86.2%, 3.4%, 77.3%)
CIE-LABlab(11.68, 30.28, -18.02)
CIE-LCHlch(11.68, 35.24, 329.24°)
OKLaboklab(25.17% 0.0856 -0.0498)
OKLCHoklch(25.17% 0.099 329.8)
XYZxyz(2.5456, 1.3589, 3.8688)
Luminance0.0136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0838 #083A0A
analogous
#23083A #3A0838 #3A081F
triadic
#3A0838 #383A08 #08383A
tetradic
#3A0838 #3A2308 #083A0A #081F3A
square
#3A0838 #3A2308 #083A0A #081F3A
split-complementary
#3A0838 #1F3A08 #083A23
monochromatic
#1B041A #1B041A #3A0838 #700F6C #A617A0

Accessibility & contrast

On white

16.51
#3A0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#3A0838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0838
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0838#FFFFFF#000000##FFFFFF
##3A08381.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031B39
Deuteranopia (green-blind)
#172137
Tritanopia (blue-blind)
#3C0F1F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #3a0838;
/* rgb */ color: rgb(58, 8, 56);
/* oklch */ color: oklch(25.2% 0.099 329.8);
Tailwind
colors: {
  custom: {
    50: '#724e6f',
    500: '#3a0838',
    950: '#000000',
  },
}
SCSS
$custom: #3a0838;
$custom-light: #724e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0838",
  "rgb": {
    "r": 58,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 302.4,
    "s": 75.758,
    "l": 12.941
  },
  "oklch": {
    "l": 0.25174,
    "c": 0.09904,
    "h": 329.8
  },
  "luminance": 0.01359
}

Semantic roles & 50–950 ramp

primary
#3A0838
secondary
#257928
accent
#F23D35
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#080207
muted
#7B787A

Preview Lab

Preview with #3A0838

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

Preview Lab → · Contrast checker → · Palette generator →

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