#3A0D5F#3A0D5F

#3A0D5F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.133 H 303.5°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#3A0D5F
RGBrgb(58, 13, 95)
HSLhsl(273, 76%, 21%)
HSVhsv(273, 86%, 37%)
CMYKcmyk(38.9%, 86.3%, 0%, 62.7%)
CIE-LABlab(15.56, 37.22, -38.75)
CIE-LCHlch(15.56, 53.73, 313.85°)
OKLaboklab(28.91% 0.0733 -0.1106)
OKLCHoklch(28.91% 0.133 303.5)
XYZxyz(3.9539, 2.0136, 11.0046)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D5F #325F0D
analogous
#110D5F #3A0D5F #5F0D5B
triadic
#3A0D5F #5F3A0D #0D5F3A
tetradic
#3A0D5F #5F110D #325F0D #0D5B5F
square
#3A0D5F #5F110D #325F0D #0D5B5F
split-complementary
#3A0D5F #5B5F0D #0D5F11
monochromatic
#10041B #190629 #3A0D5F #5B1495 #7C1CCB

Accessibility & contrast

On white

14.97
#3A0D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A0D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0D5F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D5F#FFFFFF#000000##FFFFFF
##3A0D5F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#322437
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a0d5f;
/* rgb */ color: rgb(58, 13, 95);
/* oklch */ color: oklch(28.9% 0.133 303.5);
Tailwind
colors: {
  custom: {
    50: '#75528d',
    500: '#3a0d5f',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d5f;
$custom-light: #75528d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d5f",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 95
  },
  "hsl": {
    "h": 272.927,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28911,
    "c": 0.13266,
    "h": 303.5
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#3A0D5F
secondary
#5F992F
accent
#F3358B
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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