#3A1A8E#3A1A8E

#3A1A8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.174 H 285.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3A1A8E
RGBrgb(58, 26, 142)
HSLhsl(257, 69%, 33%)
HSVhsv(257, 82%, 56%)
CMYKcmyk(59.2%, 81.7%, 0%, 44.3%)
CIE-LABlab(22.27, 44.58, -57.95)
CIE-LCHlch(22.27, 73.12, 307.57°)
OKLaboklab(35.02% 0.0474 -0.1669)
OKLCHoklch(35.02% 0.174 285.8)
XYZxyz(6.9953, 3.5909, 25.9104)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A8E #6E8E1A
analogous
#1A348E #3A1A8E #741A8E
triadic
#3A1A8E #8E3A1A #1A8E3A
tetradic
#3A1A8E #8E1A34 #6E8E1A #1A8E74
square
#3A1A8E #8E1A34 #6E8E1A #1A8E74
split-complementary
#3A1A8E #8E741A #348E1A
monochromatic
#100727 #25115A #3A1A8E #4F23C2 #6F45DD

Accessibility & contrast

On white

12.22
#3A1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A8E
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A8E#FFFFFF#000000##FFFFFF
##3A1A8E1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#0D3D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1a8e;
/* rgb */ color: rgb(58, 26, 142);
/* oklch */ color: oklch(35.0% 0.174 285.8);
Tailwind
colors: {
  custom: {
    50: '#7b5cb0',
    500: '#3a1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a8e;
$custom-light: #7b5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a8e",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 256.552,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35016,
    "c": 0.17354,
    "h": 285.8
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#3A1A8E
secondary
#9DBE45
accent
#EC3CBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3A1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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