#3A1574#3A1574

#3A1574 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.148 H 293.8°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#3A1574
RGBrgb(58, 21, 116)
HSLhsl(263, 69%, 27%)
HSVhsv(263, 82%, 45%)
CMYKcmyk(50%, 81.9%, 0%, 54.5%)
CIE-LABlab(18.79, 39.44, -47.23)
CIE-LCHlch(18.79, 61.53, 309.87°)
OKLaboklab(31.78% 0.0597 -0.1355)
OKLCHoklch(31.78% 0.148 293.8)
XYZxyz(5.1646, 2.6967, 16.7680)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1574 #4F7415
analogous
#152074 #3A1574 #6A1574
triadic
#3A1574 #743A15 #15743A
tetradic
#3A1574 #741520 #4F7415 #15746A
square
#3A1574 #741520 #4F7415 #15746A
split-complementary
#3A1574 #746A15 #207415
monochromatic
#0D051A #200C40 #3A1574 #541EA8 #6E2BD9

Accessibility & contrast

On white

13.64
#3A1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1574
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1574#FFFFFF#000000##FFFFFF
##3A15741.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#283044
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1574;
/* rgb */ color: rgb(58, 21, 116);
/* oklch */ color: oklch(31.8% 0.148 293.8);
Tailwind
colors: {
  custom: {
    50: '#77579d',
    500: '#3a1574',
    950: '#000000',
  },
}
SCSS
$custom: #3a1574;
$custom-light: #77579d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1574",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 263.368,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.1481,
    "h": 293.8
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A1574

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

Preview Lab → · Contrast checker → · Palette generator →

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