#3A0F4F#3A0F4F

#3A0F4F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.113 H 311.9°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#3A0F4F
RGBrgb(58, 15, 79)
HSLhsl(280, 68%, 18%)
HSVhsv(280, 81%, 31%)
CMYKcmyk(26.6%, 81%, 0%, 69%)
CIE-LABlab(14.43, 32.38, -29.76)
CIE-LCHlch(14.43, 43.98, 317.41°)
OKLaboklab(27.68% 0.0755 -0.0842)
OKLCHoklch(27.68% 0.113 311.9)
XYZxyz(3.3268, 1.8058, 7.5689)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F4F #244F0F
analogous
#1A0F4F #3A0F4F #4F0F44
triadic
#3A0F4F #4F3A0F #0F4F3A
tetradic
#3A0F4F #4F1A0F #244F0F #0F444F
square
#3A0F4F #4F1A0F #244F0F #0F444F
split-complementary
#3A0F4F #444F0F #0F4F1A
monochromatic
#13051A #14051C #3A0F4F #601982 #8623B6

Accessibility & contrast

On white

15.43
#3A0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0F4F
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F4F#FFFFFF#000000##FFFFFF
##3A0F4F1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#06254E
Tritanopia (blue-blind)
#371E2E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0f4f;
/* rgb */ color: rgb(58, 15, 79);
/* oklch */ color: oklch(27.7% 0.113 311.9);
Tailwind
colors: {
  custom: {
    50: '#735281',
    500: '#3a0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f4f;
$custom-light: #735281;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f4f",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 280.313,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27679,
    "c": 0.1131,
    "h": 311.9
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#3A0F4F
secondary
#4E8931
accent
#EB3D76
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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