#3D1B7D#3D1B7D

#3D1B7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.152 H 291.9°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#3D1B7D
RGBrgb(61, 27, 125)
HSLhsl(261, 64%, 30%)
HSVhsv(261, 78%, 49%)
CMYKcmyk(51.2%, 78.4%, 0%, 51%)
CIE-LABlab(21.04, 39.61, -49.27)
CIE-LCHlch(21.04, 63.22, 308.80°)
OKLaboklab(33.72% 0.0568 -0.1414)
OKLCHoklch(33.72% 0.152 291.9)
XYZxyz(6.0170, 3.2564, 19.7096)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B7D #5B7D1B
analogous
#1B2A7D #3D1B7D #6E1B7D
triadic
#3D1B7D #7D3D1B #1B7D3D
tetradic
#3D1B7D #7D1B2A #5B7D1B #1B7D6E
square
#3D1B7D #7D1B2A #5B7D1B #1B7D6E
split-complementary
#3D1B7D #7D6E1B #2A7D1B
monochromatic
#0C0519 #24104B #3D1B7D #5626AF #723DD5

Accessibility & contrast

On white

12.72
#3D1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1B7D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B7D#FFFFFF#000000##FFFFFF
##3D1B7D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1b7d;
/* rgb */ color: rgb(61, 27, 125);
/* oklch */ color: oklch(33.7% 0.152 291.9);
Tailwind
colors: {
  custom: {
    50: '#7a5ba4',
    500: '#3d1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b7d;
$custom-light: #7a5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b7d",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 260.816,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33717,
    "c": 0.15244,
    "h": 291.9
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#3D1B7D
secondary
#8BB143
accent
#E740AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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