#3A0235#3A0235

#3A0235 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.105 H 332.5°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#3A0235
RGBrgb(58, 2, 53)
HSLhsl(305, 93%, 12%)
HSVhsv(305, 97%, 23%)
CMYKcmyk(0%, 96.6%, 8.6%, 77.3%)
CIE-LABlab(10.56, 32.40, -17.63)
CIE-LCHlch(10.56, 36.88, 331.44°)
OKLaboklab(24.31% 0.0934 -0.0486)
OKLCHoklch(24.31% 0.105 332.5)
XYZxyz(2.4092, 1.2002, 3.4722)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0235 #023A07
analogous
#23023A #3A0235 #3A0219
triadic
#3A0235 #353A02 #02353A
tetradic
#3A0235 #3A2302 #023A07 #02193A
square
#3A0235 #3A2302 #023A07 #02193A
split-complementary
#3A0235 #193A02 #023A23
monochromatic
#1E011B #1E011B #3A0235 #75046B #B006A1

Accessibility & contrast

On white

16.94
#3A0235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0235
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0235#FFFFFF#000000##FFFFFF
##3A02351.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001836
Deuteranopia (green-blind)
#161F34
Tritanopia (blue-blind)
#3D081C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #3a0235;
/* rgb */ color: rgb(58, 2, 53);
/* oklch */ color: oklch(24.3% 0.105 332.5);
Tailwind
colors: {
  custom: {
    50: '#734b6c',
    500: '#3a0235',
    950: '#000000',
  },
}
SCSS
$custom: #3a0235;
$custom-light: #734b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0235",
  "rgb": {
    "r": 58,
    "g": 2,
    "b": 53
  },
  "hsl": {
    "h": 305.357,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2431,
    "c": 0.10525,
    "h": 332.5
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#3A0235
secondary
#1A7D23
accent
#FF3C29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#080107
muted
#7B777A

Preview Lab

Preview with #3A0235

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

Preview Lab → · Contrast checker → · Palette generator →

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