#3A0F4D#3A0F4D

#3A0F4D is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.111 H 313.1°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#3A0F4D
RGBrgb(58, 15, 77)
HSLhsl(282, 67%, 18%)
HSVhsv(282, 81%, 30%)
CMYKcmyk(24.7%, 80.5%, 0%, 69.8%)
CIE-LABlab(14.27, 31.89, -28.65)
CIE-LCHlch(14.27, 42.87, 318.06°)
OKLaboklab(27.51% 0.0759 -0.0809)
OKLCHoklch(27.51% 0.111 313.1)
XYZxyz(3.2551, 1.7771, 7.1913)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F4D #224D0F
analogous
#1B0F4D #3A0F4D #4D0F41
triadic
#3A0F4D #4D3A0F #0F4D3A
tetradic
#3A0F4D #4D1B0F #224D0F #0F414D
square
#3A0F4D #4D1B0F #224D0F #0F414D
split-complementary
#3A0F4D #414D0F #0F4D1B
monochromatic
#13051A #13051A #3A0F4D #611980 #8723B3

Accessibility & contrast

On white

15.49
#3A0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0F4D
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F4D#FFFFFF#000000##FFFFFF
##3A0F4D1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#09254C
Tritanopia (blue-blind)
#381D2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0f4d;
/* rgb */ color: rgb(58, 15, 77);
/* oklch */ color: oklch(27.5% 0.111 313.1);
Tailwind
colors: {
  custom: {
    50: '#73527f',
    500: '#3a0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f4d;
$custom-light: #73527f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f4d",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 281.613,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27513,
    "c": 0.11093,
    "h": 313.1
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#3A0F4D
secondary
#4B8731
accent
#EA3E72
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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