#3A0F46#3A0F46

#3A0F46 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.0% C 0.103 H 317.9°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#3A0F46
RGBrgb(58, 15, 70)
HSLhsl(287, 65%, 17%)
HSVhsv(287, 79%, 27%)
CMYKcmyk(17.1%, 78.6%, 0%, 72.5%)
CIE-LABlab(13.73, 30.24, -24.68)
CIE-LCHlch(13.73, 39.03, 320.78°)
OKLaboklab(26.96% 0.0767 -0.0693)
OKLCHoklch(26.96% 0.103 317.9)
XYZxyz(3.0211, 1.6835, 5.9590)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F46 #1B460F
analogous
#1F0F46 #3A0F46 #460F37
triadic
#3A0F46 #463A0F #0F463A
tetradic
#3A0F46 #461F0F #1B460F #0F3746
square
#3A0F46 #461F0F #1B460F #0F3746
split-complementary
#3A0F46 #37460F #0F461F
monochromatic
#150519 #150519 #3A0F46 #641A78 #8E25AB

Accessibility & contrast

On white

15.71
#3A0F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#3A0F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F46
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F46#FFFFFF#000000##FFFFFF
##3A0F461.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#112445
Tritanopia (blue-blind)
#3A1A29
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #3a0f46;
/* rgb */ color: rgb(58, 15, 70);
/* oklch */ color: oklch(27.0% 0.103 317.9);
Tailwind
colors: {
  custom: {
    50: '#72527a',
    500: '#3a0f46',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f46;
$custom-light: #72527a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f46",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 286.909,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.26956,
    "c": 0.10337,
    "h": 317.9
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#3A0F46
secondary
#428030
accent
#E84065
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0F46

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

Preview Lab → · Contrast checker → · Palette generator →

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