#3A1573#3A1573

#3A1573 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.147 H 294.1°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3A1573
RGBrgb(58, 21, 115)
HSLhsl(264, 69%, 27%)
HSVhsv(264, 82%, 45%)
CMYKcmyk(49.6%, 81.7%, 0%, 54.9%)
CIE-LABlab(18.69, 39.16, -46.75)
CIE-LCHlch(18.69, 60.98, 309.96°)
OKLaboklab(31.68% 0.06 -0.1341)
OKLCHoklch(31.68% 0.147 294.1)
XYZxyz(5.1067, 2.6735, 16.4633)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1573 #4E7315
analogous
#151F73 #3A1573 #691573
triadic
#3A1573 #733A15 #15733A
tetradic
#3A1573 #73151F #4E7315 #157369
square
#3A1573 #73151F #4E7315 #157369
split-complementary
#3A1573 #736915 #1F7315
monochromatic
#0D051A #200C3F #3A1573 #541EA7 #6F2AD8

Accessibility & contrast

On white

13.68
#3A1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1573
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1573#FFFFFF#000000##FFFFFF
##3A15731.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#292F44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1573;
/* rgb */ color: rgb(58, 21, 115);
/* oklch */ color: oklch(31.7% 0.147 294.1);
Tailwind
colors: {
  custom: {
    50: '#77579c',
    500: '#3a1573',
    950: '#000000',
  },
}
SCSS
$custom: #3a1573;
$custom-light: #77579c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1573",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 263.617,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31684,
    "c": 0.14694,
    "h": 294.1
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#3A1573
secondary
#7EA93B
accent
#EC3CA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1573

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

Preview Lab → · Contrast checker → · Palette generator →

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