#3A0F40#3A0F40

#3A0F40 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.097 H 322.6°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#3A0F40
RGBrgb(58, 15, 64)
HSLhsl(293, 62%, 15%)
HSVhsv(293, 77%, 25%)
CMYKcmyk(9.4%, 76.6%, 0%, 74.9%)
CIE-LABlab(13.30, 28.88, -21.15)
CIE-LCHlch(13.30, 35.80, 323.78°)
OKLaboklab(26.51% 0.077 -0.059)
OKLCHoklch(26.51% 0.097 322.6)
XYZxyz(2.8411, 1.6115, 5.0109)
Luminance0.0161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F40 #15400F
analogous
#210F40 #3A0F40 #400F2D
triadic
#3A0F40 #403A0F #0F403A
tetradic
#3A0F40 #40210F #15400F #0F2D40
square
#3A0F40 #40210F #15400F #0F2D40
split-complementary
#3A0F40 #2D400F #0F4021
monochromatic
#160619 #160619 #3A0F40 #671B72 #9426A3

Accessibility & contrast

On white

15.88
#3A0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#3A0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F40
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F40#FFFFFF#000000##FFFFFF
##3A0F401.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031F41
Deuteranopia (green-blind)
#16243F
Tritanopia (blue-blind)
#3B1726
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #3a0f40;
/* rgb */ color: rgb(58, 15, 64);
/* oklch */ color: oklch(26.5% 0.097 322.6);
Tailwind
colors: {
  custom: {
    50: '#725275',
    500: '#3a0f40',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f40;
$custom-light: #725275;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f40",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 292.653,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26509,
    "c": 0.09702,
    "h": 322.6
  },
  "luminance": 0.01611
}

Semantic roles & 50–950 ramp

primary
#3A0F40
secondary
#397A30
accent
#E54357
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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