#3A0D54#3A0D54

#3A0D54 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.121 H 309.3°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#3A0D54
RGBrgb(58, 13, 84)
HSLhsl(278, 73%, 19%)
HSVhsv(278, 85%, 33%)
CMYKcmyk(31%, 84.5%, 0%, 67.1%)
CIE-LABlab(14.55, 34.47, -32.98)
CIE-LCHlch(14.55, 47.70, 316.26°)
OKLaboklab(27.9% 0.0765 -0.0936)
OKLCHoklch(27.9% 0.121 309.3)
XYZxyz(3.4888, 1.8275, 8.5548)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D54 #27540D
analogous
#170D54 #3A0D54 #540D4B
triadic
#3A0D54 #543A0D #0D543A
tetradic
#3A0D54 #54170D #27540D #0D4B54
square
#3A0D54 #54170D #27540D #0D4B54
split-complementary
#3A0D54 #4B540D #0D5417
monochromatic
#12041A #15051F #3A0D54 #5F1589 #831DBE

Accessibility & contrast

On white

15.38
#3A0D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0D54
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D54#FFFFFF#000000##FFFFFF
##3A0D541.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#361F30
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0d54;
/* rgb */ color: rgb(58, 13, 84);
/* oklch */ color: oklch(27.9% 0.121 309.3);
Tailwind
colors: {
  custom: {
    50: '#745285',
    500: '#3a0d54',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d54;
$custom-light: #745285;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d54",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 278.028,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27898,
    "c": 0.1209,
    "h": 309.3
  },
  "luminance": 0.01827
}

Semantic roles & 50–950 ramp

primary
#3A0D54
secondary
#518F2E
accent
#F0387B
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0D54

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

Preview Lab → · Contrast checker → · Palette generator →

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