#3A0C51#3A0C51

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

Color values

HEX#3A0C51
RGBrgb(58, 12, 81)
HSLhsl(280, 74%, 18%)
HSVhsv(280, 85%, 32%)
CMYKcmyk(28.4%, 85.2%, 0%, 68.2%)
CIE-LABlab(14.15, 34.14, -31.58)
CIE-LCHlch(14.15, 46.51, 317.23°)
OKLaboklab(27.53% 0.0782 -0.0895)
OKLCHoklch(27.53% 0.119 311.1)
XYZxyz(3.3613, 1.7567, 7.9450)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C51 #23510C
analogous
#170C51 #3A0C51 #510C45
triadic
#3A0C51 #513A0C #0C513A
tetradic
#3A0C51 #51170C #23510C #0C4551
square
#3A0C51 #51170C #23510C #0C4551
split-complementary
#3A0C51 #45510C #0C5117
monochromatic
#13041B #14041C #3A0C51 #601486 #861CBC

Accessibility & contrast

On white

15.54
#3A0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0C51
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0C51#FFFFFF#000000##FFFFFF
##3A0C511.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002550
Tritanopia (blue-blind)
#371D2E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0c51;
/* rgb */ color: rgb(58, 12, 81);
/* oklch */ color: oklch(27.5% 0.119 311.1);
Tailwind
colors: {
  custom: {
    50: '#735182',
    500: '#3a0c51',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c51;
$custom-light: #735182;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c51",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 280,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27535,
    "c": 0.11886,
    "h": 311.1
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#3A0C51
secondary
#4C8C2C
accent
#F13775
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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