#3D1A71#3D1A71

#3D1A71 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.139 H 296.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#3D1A71
RGBrgb(61, 26, 113)
HSLhsl(264, 63%, 27%)
HSVhsv(264, 77%, 44%)
CMYKcmyk(46%, 77%, 0%, 55.7%)
CIE-LABlab(19.73, 36.68, -43.72)
CIE-LCHlch(19.73, 57.07, 310.00°)
OKLaboklab(32.45% 0.061 -0.1252)
OKLCHoklch(32.45% 0.139 296)
XYZxyz(5.2737, 2.9230, 15.9059)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A71 #4E711A
analogous
#1A2271 #3D1A71 #691A71
triadic
#3D1A71 #713D1A #1A713D
tetradic
#3D1A71 #711A22 #4E711A #1A7169
square
#3D1A71 #711A22 #4E711A #1A7169
split-complementary
#3D1A71 #71691A #22711A
monochromatic
#0D0619 #220F3F #3D1A71 #5825A3 #7335D0

Accessibility & contrast

On white

13.25
#3D1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3D1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A71
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A71#FFFFFF#000000##FFFFFF
##3D1A711.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#2F3144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d1a71;
/* rgb */ color: rgb(61, 26, 113);
/* oklch */ color: oklch(32.4% 0.139 296.0);
Tailwind
colors: {
  custom: {
    50: '#785a9b',
    500: '#3d1a71',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a71;
$custom-light: #785a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a71",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 264.138,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32447,
    "c": 0.13925,
    "h": 296
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#3D1A71
secondary
#7DA641
accent
#E642A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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