#3A1D7D#3A1D7D

#3A1D7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.150 H 289.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#3A1D7D
RGBrgb(58, 29, 125)
HSLhsl(258, 62%, 30%)
HSVhsv(258, 77%, 49%)
CMYKcmyk(53.6%, 76.8%, 0%, 51%)
CIE-LABlab(21.05, 38.10, -49.27)
CIE-LCHlch(21.05, 62.28, 307.72°)
OKLaboklab(33.64% 0.0503 -0.1416)
OKLCHoklch(33.64% 0.15 289.6)
XYZxyz(5.8849, 3.2587, 19.7170)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D7D #607D1D
analogous
#1D307D #3A1D7D #6A1D7D
triadic
#3A1D7D #7D3A1D #1D7D3A
tetradic
#3A1D7D #7D1D30 #607D1D #1D7D6A
square
#3A1D7D #7D1D30 #607D1D #1D7D6A
split-complementary
#3A1D7D #7D6A1D #307D1D
monochromatic
#0C061A #23114B #3A1D7D #5129AF #6D41D3

Accessibility & contrast

On white

12.71
#3A1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D7D
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D7D#FFFFFF#000000##FFFFFF
##3A1D7D1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#21374B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1d7d;
/* rgb */ color: rgb(58, 29, 125);
/* oklch */ color: oklch(33.6% 0.150 289.6);
Tailwind
colors: {
  custom: {
    50: '#785ca4',
    500: '#3a1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d7d;
$custom-light: #785ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d7d",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 258.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33641,
    "c": 0.15024,
    "h": 289.6
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#3A1D7D
secondary
#90B145
accent
#E542B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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