#3A0D56#3A0D56

#3A0D56 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.123 H 308.1°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#3A0D56
RGBrgb(58, 13, 86)
HSLhsl(277, 74%, 19%)
HSVhsv(277, 85%, 34%)
CMYKcmyk(32.6%, 84.9%, 0%, 66.3%)
CIE-LABlab(14.73, 34.96, -34.05)
CIE-LCHlch(14.73, 48.80, 315.75°)
OKLaboklab(28.08% 0.076 -0.0968)
OKLCHoklch(28.08% 0.123 308.1)
XYZxyz(3.5682, 1.8593, 8.9732)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D56 #29560D
analogous
#160D56 #3A0D56 #560D4E
triadic
#3A0D56 #563A0D #0D563A
tetradic
#3A0D56 #56160D #29560D #0D4E56
square
#3A0D56 #56160D #29560D #0D4E56
split-complementary
#3A0D56 #4E560D #0D5616
monochromatic
#12041B #160521 #3A0D56 #5E158B #821DC0

Accessibility & contrast

On white

15.31
#3A0D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#3A0D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0D56
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D56#FFFFFF#000000##FFFFFF
##3A0D561.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#352031
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0d56;
/* rgb */ color: rgb(58, 13, 86);
/* oklch */ color: oklch(28.1% 0.123 308.1);
Tailwind
colors: {
  custom: {
    50: '#745286',
    500: '#3a0d56',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d56;
$custom-light: #745286;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d56",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 276.986,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28076,
    "c": 0.12303,
    "h": 308.1
  },
  "luminance": 0.01859
}

Semantic roles & 50–950 ramp

primary
#3A0D56
secondary
#54912E
accent
#F0377E
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0D56

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

Preview Lab → · Contrast checker → · Palette generator →

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