#3A0440#3A0440

#3A0440 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.112 H 323.5°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#3A0440
RGBrgb(58, 4, 64)
HSLhsl(294, 88%, 13%)
HSVhsv(294, 94%, 25%)
CMYKcmyk(9.4%, 93.8%, 0%, 74.9%)
CIE-LABlab(11.67, 33.57, -23.77)
CIE-LCHlch(11.67, 41.13, 324.70°)
OKLaboklab(25.35% 0.0898 -0.0665)
OKLCHoklch(25.35% 0.112 323.5)
XYZxyz(2.7137, 1.3567, 4.9684)
Luminance0.0136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0440 #0A4004
analogous
#1C0440 #3A0440 #400428
triadic
#3A0440 #403A04 #04403A
tetradic
#3A0440 #401C04 #0A4004 #042840
square
#3A0440 #401C04 #0A4004 #042840
split-complementary
#3A0440 #284004 #04401C
monochromatic
#1A021D #1A021D #3A0440 #6E087A #A20BB3

Accessibility & contrast

On white

16.52
#3A0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0440
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0440#FFFFFF#000000##FFFFFF
##3A04401.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.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: #3a0440;
/* rgb */ color: rgb(58, 4, 64);
/* oklch */ color: oklch(25.3% 0.112 323.5);
Tailwind
colors: {
  custom: {
    50: '#734d75',
    500: '#3a0440',
    950: '#000000',
  },
}
SCSS
$custom: #3a0440;
$custom-light: #734d75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0440",
  "rgb": {
    "r": 58,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 294,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25348,
    "c": 0.11173,
    "h": 323.5
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#3A0440
secondary
#28811F
accent
#FE293F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080108
muted
#7B777B

Preview Lab

Preview with #3A0440

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

Preview Lab → · Contrast checker → · Palette generator →

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