#3A0340#3A0340

#3A0340 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.2% C 0.113 H 323.5°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#3A0340
RGBrgb(58, 3, 64)
HSLhsl(294, 91%, 13%)
HSVhsv(294, 95%, 25%)
CMYKcmyk(9.4%, 95.3%, 0%, 74.9%)
CIE-LABlab(11.52, 34.00, -24.01)
CIE-LCHlch(11.52, 41.62, 324.78°)
OKLaboklab(25.24% 0.091 -0.0672)
OKLCHoklch(25.24% 0.113 323.5)
XYZxyz(2.7028, 1.3350, 4.9648)
Luminance0.0134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0340 #094003
analogous
#1B0340 #3A0340 #400327
triadic
#3A0340 #403A03 #03403A
tetradic
#3A0340 #401B03 #094003 #032740
square
#3A0340 #401B03 #094003 #032740
split-complementary
#3A0340 #274003 #03401B
monochromatic
#1A011D #1A011D #3A0340 #6F067A #A408B5

Accessibility & contrast

On white

16.57
#3A0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#3A0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0340
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0340#FFFFFF#000000##FFFFFF
##3A03401.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#3B1023
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #3a0340;
/* rgb */ color: rgb(58, 3, 64);
/* oklch */ color: oklch(25.2% 0.113 323.5);
Tailwind
colors: {
  custom: {
    50: '#734c75',
    500: '#3a0340',
    950: '#000000',
  },
}
SCSS
$custom: #3a0340;
$custom-light: #734c75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0340",
  "rgb": {
    "r": 58,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 294.098,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25244,
    "c": 0.11309,
    "h": 323.5
  },
  "luminance": 0.01335
}

Semantic roles & 50–950 ramp

primary
#3A0340
secondary
#27821D
accent
#FF293E
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080108
muted
#7B777B

Preview Lab

Preview with #3A0340

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

Preview Lab → · Contrast checker → · Palette generator →

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