#3D1D72#3D1D72

#3D1D72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.137 H 295.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#3D1D72
RGBrgb(61, 29, 114)
HSLhsl(263, 59%, 28%)
HSVhsv(263, 75%, 45%)
CMYKcmyk(46.5%, 74.6%, 0%, 55.3%)
CIE-LABlab(20.38, 35.39, -43.31)
CIE-LCHlch(20.38, 55.93, 309.26°)
OKLaboklab(32.94% 0.0577 -0.124)
OKLCHoklch(32.94% 0.137 295)
XYZxyz(5.4003, 3.0856, 16.2274)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D72 #52721D
analogous
#1D2772 #3D1D72 #671D72
triadic
#3D1D72 #723D1D #1D723D
tetradic
#3D1D72 #721D27 #52721D #1D7267
square
#3D1D72 #721D27 #52721D #1D7267
split-complementary
#3D1D72 #72671D #27721D
monochromatic
#0D0618 #231141 #3D1D72 #5729A3 #733CCD

Accessibility & contrast

On white

12.99
#3D1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D1D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D72
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D72#FFFFFF#000000##FFFFFF
##3D1D721.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#2E3345
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1d72;
/* rgb */ color: rgb(61, 29, 114);
/* oklch */ color: oklch(32.9% 0.137 295.0);
Tailwind
colors: {
  custom: {
    50: '#785c9b',
    500: '#3d1d72',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d72;
$custom-light: #785c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d72",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 262.588,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32936,
    "c": 0.13676,
    "h": 295
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#3D1D72
secondary
#81A645
accent
#E345A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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