#3A0940#3A0940

#3A0940 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.105 H 323.1°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#3A0940
RGBrgb(58, 9, 64)
HSLhsl(293, 75%, 14%)
HSVhsv(293, 86%, 25%)
CMYKcmyk(9.4%, 85.9%, 0%, 74.9%)
CIE-LABlab(12.39, 31.48, -22.62)
CIE-LCHlch(12.39, 38.76, 324.31°)
OKLaboklab(25.86% 0.0841 -0.0632)
OKLCHoklch(25.86% 0.105 323.1)
XYZxyz(2.7679, 1.4652, 4.9865)
Luminance0.0146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0940 #0F4009
analogous
#1F0940 #3A0940 #40092B
triadic
#3A0940 #403A09 #09403A
tetradic
#3A0940 #401F09 #0F4009 #092B40
square
#3A0940 #401F09 #0F4009 #092B40
split-complementary
#3A0940 #2B4009 #09401F
monochromatic
#18041B #18041B #3A0940 #6B1176 #9B18AB

Accessibility & contrast

On white

16.24
#3A0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3A0940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0940
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0940#FFFFFF#000000##FFFFFF
##3A09401.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#12223F
Tritanopia (blue-blind)
#3B1424
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0940;
/* rgb */ color: rgb(58, 9, 64);
/* oklch */ color: oklch(25.9% 0.105 323.1);
Tailwind
colors: {
  custom: {
    50: '#734f75',
    500: '#3a0940',
    950: '#000000',
  },
}
SCSS
$custom: #3a0940;
$custom-light: #734f75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0940",
  "rgb": {
    "r": 58,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 293.455,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25856,
    "c": 0.1052,
    "h": 323.1
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#3A0940
secondary
#307E27
accent
#F2364A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0940

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

Preview Lab → · Contrast checker → · Palette generator →

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