#3A0233#3A0233

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

Color values

HEX#3A0233
RGBrgb(58, 2, 51)
HSLhsl(308, 93%, 12%)
HSVhsv(308, 97%, 23%)
CMYKcmyk(0%, 96.6%, 12.1%, 77.3%)
CIE-LABlab(10.43, 32.05, -16.38)
CIE-LCHlch(10.43, 36.00, 332.93°)
OKLaboklab(24.17% 0.0934 -0.045)
OKLCHoklch(24.17% 0.104 334.3)
XYZxyz(2.3642, 1.1822, 3.2350)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0233 #023A09
analogous
#25023A #3A0233 #3A0217
triadic
#3A0233 #333A02 #02333A
tetradic
#3A0233 #3A2502 #023A09 #02173A
square
#3A0233 #3A2502 #023A09 #02173A
split-complementary
#3A0233 #173A02 #023A25
monochromatic
#1E011A #1E011A #3A0233 #750467 #B0069B

Accessibility & contrast

On white

16.98
#3A0233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0233
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0233#FFFFFF#000000##FFFFFF
##3A02331.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011734
Deuteranopia (green-blind)
#171F32
Tritanopia (blue-blind)
#3D071B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #3a0233;
/* rgb */ color: rgb(58, 2, 51);
/* oklch */ color: oklch(24.2% 0.104 334.3);
Tailwind
colors: {
  custom: {
    50: '#734b6b',
    500: '#3a0233',
    950: '#000000',
  },
}
SCSS
$custom: #3a0233;
$custom-light: #734b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0233",
  "rgb": {
    "r": 58,
    "g": 2,
    "b": 51
  },
  "hsl": {
    "h": 307.5,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.24172,
    "c": 0.10365,
    "h": 334.3
  },
  "luminance": 0.01182
}

Semantic roles & 50–950 ramp

primary
#3A0233
secondary
#1A7D27
accent
#FF4429
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#080106
muted
#7B777A

Preview Lab

Preview with #3A0233

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

Preview Lab → · Contrast checker → · Palette generator →

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