#3A0438#3A0438

#3A0438 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.105 H 329.9°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#3A0438
RGBrgb(58, 4, 56)
HSLhsl(302, 87%, 12%)
HSVhsv(302, 93%, 23%)
CMYKcmyk(0%, 93.1%, 3.4%, 77.3%)
CIE-LABlab(11.08, 32.02, -18.98)
CIE-LCHlch(11.08, 37.22, 329.34°)
OKLaboklab(24.75% 0.0906 -0.0525)
OKLCHoklch(24.75% 0.105 329.9)
XYZxyz(2.5021, 1.2721, 3.8544)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0438 #043A06
analogous
#21043A #3A0438 #3A041D
triadic
#3A0438 #383A04 #04383A
tetradic
#3A0438 #3A2104 #043A06 #041D3A
square
#3A0438 #3A2104 #043A06 #041D3A
split-complementary
#3A0438 #1D3A04 #043A21
monochromatic
#1D021C #1D021C #3A0438 #73086F #AD0CA7

Accessibility & contrast

On white

16.74
#3A0438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#3A0438 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0438
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0438#FFFFFF#000000##FFFFFF
##3A04381.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#152037
Tritanopia (blue-blind)
#3D0C1E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #3a0438;
/* rgb */ color: rgb(58, 4, 56);
/* oklch */ color: oklch(24.7% 0.105 329.9);
Tailwind
colors: {
  custom: {
    50: '#734c6f',
    500: '#3a0438',
    950: '#000000',
  },
}
SCSS
$custom: #3a0438;
$custom-light: #734c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0438",
  "rgb": {
    "r": 58,
    "g": 4,
    "b": 56
  },
  "hsl": {
    "h": 302.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.24745,
    "c": 0.10473,
    "h": 329.9
  },
  "luminance": 0.01272
}

Semantic roles & 50–950 ramp

primary
#3A0438
secondary
#1E7C21
accent
#FD322B
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#080107
muted
#7B777A

Preview Lab

Preview with #3A0438

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

Preview Lab → · Contrast checker → · Palette generator →

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