#3A1C93#3A1C93

#3A1C93 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.178 H 284.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3A1C93
RGBrgb(58, 28, 147)
HSLhsl(255, 68%, 34%)
HSVhsv(255, 81%, 58%)
CMYKcmyk(60.5%, 81%, 0%, 42.4%)
CIE-LABlab(23.12, 45.11, -59.65)
CIE-LCHlch(23.12, 74.79, 307.10°)
OKLaboklab(35.77% 0.0445 -0.1719)
OKLCHoklch(35.77% 0.178 284.5)
XYZxyz(7.4250, 3.8362, 27.9473)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C93 #75931C
analogous
#1C3A93 #3A1C93 #761C93
triadic
#3A1C93 #933A1C #1C933A
tetradic
#3A1C93 #931C3A #75931C #1C9376
square
#3A1C93 #931C3A #75931C #1C9376
split-complementary
#3A1C93 #93761C #3A931C
monochromatic
#11082C #261260 #3A1C93 #4E26C6 #714CDD

Accessibility & contrast

On white

11.88
#3A1C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A1C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C93
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C93#FFFFFF#000000##FFFFFF
##3A1C931.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1c93;
/* rgb */ color: rgb(58, 28, 147);
/* oklch */ color: oklch(35.8% 0.178 284.5);
Tailwind
colors: {
  custom: {
    50: '#7c5db4',
    500: '#3a1c93',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c93;
$custom-light: #7c5db4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c93",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 255.126,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35766,
    "c": 0.17758,
    "h": 284.5
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#3A1C93
secondary
#A2BF4C
accent
#EB3DBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1C93

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

Preview Lab → · Contrast checker → · Palette generator →

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