#3A0331#3A0331

#3A0331 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.101 H 336.2°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#3A0331
RGBrgb(58, 3, 49)
HSLhsl(310, 90%, 12%)
HSVhsv(310, 95%, 23%)
CMYKcmyk(0%, 94.8%, 15.5%, 77.3%)
CIE-LABlab(10.46, 31.24, -14.87)
CIE-LCHlch(10.46, 34.60, 334.56°)
OKLaboklab(24.15% 0.0919 -0.0406)
OKLCHoklch(24.15% 0.101 336.2)
XYZxyz(2.3319, 1.1866, 3.0114)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0331 #033A0C
analogous
#28033A #3A0331 #3A0316
triadic
#3A0331 #313A03 #03313A
tetradic
#3A0331 #3A2803 #033A0C #03163A
square
#3A0331 #3A2803 #033A0C #03163A
split-complementary
#3A0331 #163A03 #033A28
monochromatic
#1D0219 #1D0219 #3A0331 #740662 #AE0993

Accessibility & contrast

On white

16.97
#3A0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#3A0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0331
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0331#FFFFFF#000000##FFFFFF
##3A03311.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041732
Deuteranopia (green-blind)
#181F30
Tritanopia (blue-blind)
#3E071A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #3a0331;
/* rgb */ color: rgb(58, 3, 49);
/* oklch */ color: oklch(24.2% 0.101 336.2);
Tailwind
colors: {
  custom: {
    50: '#734b69',
    500: '#3a0331',
    950: '#000000',
  },
}
SCSS
$custom: #3a0331;
$custom-light: #734b69;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0331",
  "rgb": {
    "r": 58,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 309.818,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.24154,
    "c": 0.1005,
    "h": 336.2
  },
  "luminance": 0.01186
}

Semantic roles & 50–950 ramp

primary
#3A0331
secondary
#1C7D2C
accent
#FF4C29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#080106
muted
#7B777A

Preview Lab

Preview with #3A0331

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

Preview Lab → · Contrast checker → · Palette generator →

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