#3A0F4E#3A0F4E

#3A0F4E is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.112 H 312.5°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#3A0F4E
RGBrgb(58, 15, 78)
HSLhsl(281, 68%, 18%)
HSVhsv(281, 81%, 31%)
CMYKcmyk(25.6%, 80.8%, 0%, 69.4%)
CIE-LABlab(14.35, 32.13, -29.21)
CIE-LCHlch(14.35, 43.43, 317.73°)
OKLaboklab(27.6% 0.0757 -0.0826)
OKLCHoklch(27.6% 0.112 312.5)
XYZxyz(3.2906, 1.7913, 7.3787)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F4E #234E0F
analogous
#1A0F4E #3A0F4E #4E0F42
triadic
#3A0F4E #4E3A0F #0F4E3A
tetradic
#3A0F4E #4E1A0F #234E0F #0F424E
square
#3A0F4E #4E1A0F #234E0F #0F424E
split-complementary
#3A0F4E #424E0F #0F4E1A
monochromatic
#13051A #14051B #3A0F4E #601981 #8623B5

Accessibility & contrast

On white

15.46
#3A0F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3A0F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F4E
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F4E#FFFFFF#000000##FFFFFF
##3A0F4E1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#08254D
Tritanopia (blue-blind)
#381D2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0f4e;
/* rgb */ color: rgb(58, 15, 78);
/* oklch */ color: oklch(27.6% 0.112 312.5);
Tailwind
colors: {
  custom: {
    50: '#735280',
    500: '#3a0f4e',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f4e;
$custom-light: #735280;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f4e",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 280.952,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27596,
    "c": 0.11201,
    "h": 312.5
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#3A0F4E
secondary
#4C8831
accent
#EB3D74
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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