#3A0D5D#3A0D5D

#3A0D5D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.131 H 304.5°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#3A0D5D
RGBrgb(58, 13, 93)
HSLhsl(274, 75%, 21%)
HSVhsv(274, 86%, 36%)
CMYKcmyk(37.6%, 86%, 0%, 63.5%)
CIE-LABlab(15.37, 36.71, -37.72)
CIE-LCHlch(15.37, 52.64, 314.22°)
OKLaboklab(28.72% 0.0739 -0.1076)
OKLCHoklch(28.72% 0.131 304.5)
XYZxyz(3.8642, 1.9777, 10.5320)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D5D #305D0D
analogous
#120D5D #3A0D5D #5D0D58
triadic
#3A0D5D #5D3A0D #0D5D3A
tetradic
#3A0D5D #5D120D #305D0D #0D585D
square
#3A0D5D #5D120D #305D0D #0D585D
split-complementary
#3A0D5D #585D0D #0D5D12
monochromatic
#11041B #190527 #3A0D5D #5B1593 #7D1CC8

Accessibility & contrast

On white

15.05
#3A0D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0D5D
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D5D#FFFFFF#000000##FFFFFF
##3A0D5D1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#332336
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a0d5d;
/* rgb */ color: rgb(58, 13, 93);
/* oklch */ color: oklch(28.7% 0.131 304.5);
Tailwind
colors: {
  custom: {
    50: '#75528c',
    500: '#3a0d5d',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d5d;
$custom-light: #75528c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d5d",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 93
  },
  "hsl": {
    "h": 273.75,
    "s": 75.472,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28721,
    "c": 0.13052,
    "h": 304.5
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#3A0D5D
secondary
#5C972F
accent
#F23688
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09020C
muted
#7B787D

Preview Lab

Preview with #3A0D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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