#3D1A72#3D1A72

#3D1A72 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.140 H 295.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#3D1A72
RGBrgb(61, 26, 114)
HSLhsl(264, 63%, 27%)
HSVhsv(264, 77%, 45%)
CMYKcmyk(46.5%, 77.2%, 0%, 55.3%)
CIE-LABlab(19.83, 36.97, -44.22)
CIE-LCHlch(19.83, 57.64, 309.89°)
OKLaboklab(32.54% 0.0607 -0.1266)
OKLCHoklch(32.54% 0.14 295.6)
XYZxyz(5.3303, 2.9457, 16.2041)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A72 #4F721A
analogous
#1A2372 #3D1A72 #691A72
triadic
#3D1A72 #723D1A #1A723D
tetradic
#3D1A72 #721A23 #4F721A #1A7269
square
#3D1A72 #721A23 #4F721A #1A7269
split-complementary
#3D1A72 #72691A #23721A
monochromatic
#0D0619 #220F40 #3D1A72 #5825A4 #7335D1

Accessibility & contrast

On white

13.21
#3D1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3D1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A72
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A72#FFFFFF#000000##FFFFFF
##3D1A721.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#2E3144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d1a72;
/* rgb */ color: rgb(61, 26, 114);
/* oklch */ color: oklch(32.5% 0.140 295.6);
Tailwind
colors: {
  custom: {
    50: '#785a9b',
    500: '#3d1a72',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a72;
$custom-light: #785a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a72",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 263.864,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32541,
    "c": 0.14044,
    "h": 295.6
  },
  "luminance": 0.02946
}

Semantic roles & 50–950 ramp

primary
#3D1A72
secondary
#7EA741
accent
#E642A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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