#3A0740#3A0740

#3A0740 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.7% C 0.108 H 323.2°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#3A0740
RGBrgb(58, 7, 64)
HSLhsl(294, 80%, 14%)
HSVhsv(294, 89%, 25%)
CMYKcmyk(9.4%, 89.1%, 0%, 74.9%)
CIE-LABlab(12.10, 32.30, -23.07)
CIE-LCHlch(12.10, 39.69, 324.46°)
OKLaboklab(25.66% 0.0863 -0.0645)
OKLCHoklch(25.66% 0.108 323.2)
XYZxyz(2.7462, 1.4218, 4.9793)
Luminance0.0142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0740 #0D4007
analogous
#1E0740 #3A0740 #40072A
triadic
#3A0740 #403A07 #07403A
tetradic
#3A0740 #401E07 #0D4007 #072A40
square
#3A0740 #401E07 #0D4007 #072A40
split-complementary
#3A0740 #2A4007 #07401E
monochromatic
#19031C #19031C #3A0740 #6C0D77 #9E13AE

Accessibility & contrast

On white

16.35
#3A0740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#3A0740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0740
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0740#FFFFFF#000000##FFFFFF
##3A07401.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#11223F
Tritanopia (blue-blind)
#3B1224
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0740;
/* rgb */ color: rgb(58, 7, 64);
/* oklch */ color: oklch(25.7% 0.108 323.2);
Tailwind
colors: {
  custom: {
    50: '#734e75',
    500: '#3a0740',
    950: '#000000',
  },
}
SCSS
$custom: #3a0740;
$custom-light: #734e75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0740",
  "rgb": {
    "r": 58,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 293.684,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25655,
    "c": 0.10776,
    "h": 323.2
  },
  "luminance": 0.01422
}

Semantic roles & 50–950 ramp

primary
#3A0740
secondary
#2D7F24
accent
#F73146
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0740

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

Preview Lab → · Contrast checker → · Palette generator →

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