#3A0D5C#3A0D5C

#3A0D5C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.129 H 305.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#3A0D5C
RGBrgb(58, 13, 92)
HSLhsl(274, 75%, 21%)
HSVhsv(274, 86%, 36%)
CMYKcmyk(37%, 85.9%, 0%, 63.9%)
CIE-LABlab(15.28, 36.46, -37.20)
CIE-LCHlch(15.28, 52.09, 314.42°)
OKLaboklab(28.63% 0.0743 -0.106)
OKLCHoklch(28.63% 0.129 305)
XYZxyz(3.8202, 1.9601, 10.3002)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D5C #2F5C0D
analogous
#120D5C #3A0D5C #5C0D56
triadic
#3A0D5C #5C3A0D #0D5C3A
tetradic
#3A0D5C #5C120D #2F5C0D #0D565C
square
#3A0D5C #5C120D #2F5C0D #0D565C
split-complementary
#3A0D5C #565C0D #0D5C12
monochromatic
#11041B #180526 #3A0D5C #5C1592 #7E1CC7

Accessibility & contrast

On white

15.09
#3A0D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A0D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0D5C
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D5C#FFFFFF#000000##FFFFFF
##3A0D5C1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#332235
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a0d5c;
/* rgb */ color: rgb(58, 13, 92);
/* oklch */ color: oklch(28.6% 0.129 305.0);
Tailwind
colors: {
  custom: {
    50: '#74528b',
    500: '#3a0d5c',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d5c;
$custom-light: #74528b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d5c",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 92
  },
  "hsl": {
    "h": 274.177,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28627,
    "c": 0.12945,
    "h": 305
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#3A0D5C
secondary
#5B962F
accent
#F23687
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09020C
muted
#7B787D

Preview Lab

Preview with #3A0D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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