#3A0234#3A0234

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

Color values

HEX#3A0234
RGBrgb(58, 2, 52)
HSLhsl(306, 93%, 12%)
HSVhsv(306, 97%, 23%)
CMYKcmyk(0%, 96.6%, 10.3%, 77.3%)
CIE-LABlab(10.49, 32.22, -17.01)
CIE-LCHlch(10.49, 36.44, 332.17°)
OKLaboklab(24.24% 0.0934 -0.0468)
OKLCHoklch(24.24% 0.104 333.4)
XYZxyz(2.3865, 1.1911, 3.3524)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0234 #023A08
analogous
#24023A #3A0234 #3A0218
triadic
#3A0234 #343A02 #02343A
tetradic
#3A0234 #3A2402 #023A08 #02183A
square
#3A0234 #3A2402 #023A08 #02183A
split-complementary
#3A0234 #183A02 #023A24
monochromatic
#1E011B #1E011B #3A0234 #750469 #B0069E

Accessibility & contrast

On white

16.96
#3A0234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0234
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0234#FFFFFF#000000##FFFFFF
##3A02341.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001735
Deuteranopia (green-blind)
#161F33
Tritanopia (blue-blind)
#3D081B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #3a0234;
/* rgb */ color: rgb(58, 2, 52);
/* oklch */ color: oklch(24.2% 0.104 333.4);
Tailwind
colors: {
  custom: {
    50: '#734b6b',
    500: '#3a0234',
    950: '#000000',
  },
}
SCSS
$custom: #3a0234;
$custom-light: #734b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0234",
  "rgb": {
    "r": 58,
    "g": 2,
    "b": 52
  },
  "hsl": {
    "h": 306.429,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.24241,
    "c": 0.10445,
    "h": 333.4
  },
  "luminance": 0.01191
}

Semantic roles & 50–950 ramp

primary
#3A0234
secondary
#1A7D25
accent
#FF4029
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#080106
muted
#7B777A

Preview Lab

Preview with #3A0234

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

Preview Lab → · Contrast checker → · Palette generator →

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