#3A0D55#3A0D55

#3A0D55 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.122 H 308.7°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#3A0D55
RGBrgb(58, 13, 85)
HSLhsl(278, 73%, 19%)
HSVhsv(278, 85%, 33%)
CMYKcmyk(31.8%, 84.7%, 0%, 66.7%)
CIE-LABlab(14.64, 34.71, -33.52)
CIE-LCHlch(14.64, 48.25, 316.00°)
OKLaboklab(27.99% 0.0762 -0.0952)
OKLCHoklch(27.99% 0.122 308.7)
XYZxyz(3.5282, 1.8433, 8.7625)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D55 #28550D
analogous
#160D55 #3A0D55 #550D4C
triadic
#3A0D55 #553A0D #0D553A
tetradic
#3A0D55 #55160D #28550D #0D4C55
square
#3A0D55 #55160D #28550D #0D4C55
split-complementary
#3A0D55 #4C550D #0D5516
monochromatic
#12041B #160520 #3A0D55 #5E158A #821DBF

Accessibility & contrast

On white

15.34
#3A0D55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0D55
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D55#FFFFFF#000000##FFFFFF
##3A0D551.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#361F31
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0d55;
/* rgb */ color: rgb(58, 13, 85);
/* oklch */ color: oklch(28.0% 0.122 308.7);
Tailwind
colors: {
  custom: {
    50: '#745285',
    500: '#3a0d55',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d55;
$custom-light: #745285;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d55",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 85
  },
  "hsl": {
    "h": 277.5,
    "s": 73.469,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27987,
    "c": 0.12197,
    "h": 308.7
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#3A0D55
secondary
#53902E
accent
#F0387D
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0D55

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

Preview Lab → · Contrast checker → · Palette generator →

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