#3A0F4C#3A0F4C

#3A0F4C is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.110 H 313.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#3A0F4C
RGBrgb(58, 15, 76)
HSLhsl(282, 67%, 18%)
HSVhsv(282, 80%, 30%)
CMYKcmyk(23.7%, 80.3%, 0%, 70.2%)
CIE-LABlab(14.19, 31.65, -28.09)
CIE-LCHlch(14.19, 42.32, 318.41°)
OKLaboklab(27.43% 0.076 -0.0793)
OKLCHoklch(27.43% 0.11 313.8)
XYZxyz(3.2200, 1.7631, 7.0068)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F4C #214C0F
analogous
#1B0F4C #3A0F4C #4C0F3F
triadic
#3A0F4C #4C3A0F #0F4C3A
tetradic
#3A0F4C #4C1B0F #214C0F #0F3F4C
square
#3A0F4C #4C1B0F #214C0F #0F3F4C
split-complementary
#3A0F4C #3F4C0F #0F4C1B
monochromatic
#14051A #14051A #3A0F4C #61197F #8823B2

Accessibility & contrast

On white

15.53
#3A0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A0F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F4C
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F4C#FFFFFF#000000##FFFFFF
##3A0F4C1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#0A254B
Tritanopia (blue-blind)
#381C2C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0f4c;
/* rgb */ color: rgb(58, 15, 76);
/* oklch */ color: oklch(27.4% 0.110 313.8);
Tailwind
colors: {
  custom: {
    50: '#73527e',
    500: '#3a0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f4c;
$custom-light: #73527e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f4c",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 282.295,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27431,
    "c": 0.10984,
    "h": 313.8
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#3A0F4C
secondary
#4A8631
accent
#EA3E71
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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