#3A0338#3A0338

#3A0338 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.106 H 329.9°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#3A0338
RGBrgb(58, 3, 56)
HSLhsl(302, 90%, 12%)
HSVhsv(302, 95%, 23%)
CMYKcmyk(0%, 94.8%, 3.4%, 77.3%)
CIE-LABlab(10.92, 32.47, -19.23)
CIE-LCHlch(10.92, 37.74, 329.37°)
OKLaboklab(24.64% 0.0919 -0.0532)
OKLCHoklch(24.64% 0.106 329.9)
XYZxyz(2.4913, 1.2504, 3.8508)
Luminance0.0125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0338 #033A05
analogous
#21033A #3A0338 #3A031D
triadic
#3A0338 #383A03 #03383A
tetradic
#3A0338 #3A2103 #033A05 #031D3A
square
#3A0338 #3A2103 #033A05 #031D3A
split-complementary
#3A0338 #1D3A03 #033A21
monochromatic
#1D021C #1D021C #3A0338 #740670 #AE09A8

Accessibility & contrast

On white

16.80
#3A0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#3A0338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0338
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0338#FFFFFF#000000##FFFFFF
##3A03381.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#152037
Tritanopia (blue-blind)
#3D0B1E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #3a0338;
/* rgb */ color: rgb(58, 3, 56);
/* oklch */ color: oklch(24.6% 0.106 329.9);
Tailwind
colors: {
  custom: {
    50: '#734c6f',
    500: '#3a0338',
    950: '#000000',
  },
}
SCSS
$custom: #3a0338;
$custom-light: #734c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0338",
  "rgb": {
    "r": 58,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 302.182,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.24635,
    "c": 0.1062,
    "h": 329.9
  },
  "luminance": 0.0125
}

Semantic roles & 50–950 ramp

primary
#3A0338
secondary
#1C7D20
accent
#FF3129
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#080107
muted
#7B777A

Preview Lab

Preview with #3A0338

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

Preview Lab → · Contrast checker → · Palette generator →

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