#3A1893#3A1893

#3A1893 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.181 H 285.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3A1893
RGBrgb(58, 24, 147)
HSLhsl(257, 72%, 34%)
HSVhsv(257, 84%, 58%)
CMYKcmyk(60.5%, 83.7%, 0%, 42.4%)
CIE-LABlab(22.51, 46.90, -60.66)
CIE-LCHlch(22.51, 76.68, 307.71°)
OKLaboklab(35.34% 0.0469 -0.1748)
OKLCHoklch(35.34% 0.181 285)
XYZxyz(7.3364, 3.6589, 27.9178)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1893 #719318
analogous
#183493 #3A1893 #771893
triadic
#3A1893 #933A18 #18933A
tetradic
#3A1893 #931834 #719318 #189377
square
#3A1893 #931834 #719318 #189377
split-complementary
#3A1893 #937718 #349318
monochromatic
#10072A #250F5E #3A1893 #4F21C8 #7045E1

Accessibility & contrast

On white

12.13
#3A1893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A1893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1893
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1893#FFFFFF#000000##FFFFFF
##3A18931.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#013E57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1893;
/* rgb */ color: rgb(58, 24, 147);
/* oklch */ color: oklch(35.3% 0.181 285.0);
Tailwind
colors: {
  custom: {
    50: '#7c5bb4',
    500: '#3a1893',
    950: '#000000',
  },
}
SCSS
$custom: #3a1893;
$custom-light: #7c5bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1893",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 256.585,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35343,
    "c": 0.18099,
    "h": 285
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#3A1893
secondary
#9FC245
accent
#EF39BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1893

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

Preview Lab → · Contrast checker → · Palette generator →

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