#3A0232#3A0232

#3A0232 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.103 H 335.2°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#3A0232
RGBrgb(58, 2, 50)
HSLhsl(309, 93%, 12%)
HSVhsv(309, 97%, 23%)
CMYKcmyk(0%, 96.6%, 13.8%, 77.3%)
CIE-LABlab(10.36, 31.88, -15.75)
CIE-LCHlch(10.36, 35.56, 333.71°)
OKLaboklab(24.1% 0.0934 -0.0432)
OKLCHoklch(24.1% 0.103 335.2)
XYZxyz(2.3424, 1.1735, 3.1201)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0232 #023A0A
analogous
#26023A #3A0232 #3A0216
triadic
#3A0232 #323A02 #02323A
tetradic
#3A0232 #3A2602 #023A0A #02163A
square
#3A0232 #3A2602 #023A0A #02163A
split-complementary
#3A0232 #163A02 #023A26
monochromatic
#1E011A #1E011A #3A0232 #750465 #B00698

Accessibility & contrast

On white

17.01
#3A0232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#3A0232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0232
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0232#FFFFFF#000000##FFFFFF
##3A02321.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021733
Deuteranopia (green-blind)
#171F31
Tritanopia (blue-blind)
#3D061A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #3a0232;
/* rgb */ color: rgb(58, 2, 50);
/* oklch */ color: oklch(24.1% 0.103 335.2);
Tailwind
colors: {
  custom: {
    50: '#734b6a',
    500: '#3a0232',
    950: '#000000',
  },
}
SCSS
$custom: #3a0232;
$custom-light: #734b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0232",
  "rgb": {
    "r": 58,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 308.571,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.24105,
    "c": 0.10287,
    "h": 335.2
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#3A0232
secondary
#1A7D28
accent
#FF4729
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#080106
muted
#7B777A

Preview Lab

Preview with #3A0232

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

Preview Lab → · Contrast checker → · Palette generator →

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