#3D1C8D#3D1C8D

#3D1C8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.170 H 287.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#3D1C8D
RGBrgb(61, 28, 141)
HSLhsl(258, 67%, 33%)
HSVhsv(258, 80%, 55%)
CMYKcmyk(56.7%, 80.1%, 0%, 44.7%)
CIE-LABlab(22.81, 43.74, -56.43)
CIE-LCHlch(22.81, 71.40, 307.78°)
OKLaboklab(35.44% 0.0512 -0.1624)
OKLCHoklch(35.44% 0.17 287.5)
XYZxyz(7.1460, 3.7453, 25.5405)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1C8D #6C8D1C
analogous
#1C338D #3D1C8D #751C8D
triadic
#3D1C8D #8D3D1C #1C8D3D
tetradic
#3D1C8D #8D1C33 #6C8D1C #1C8D75
square
#3D1C8D #8D1C33 #6C8D1C #1C8D75
split-complementary
#3D1C8D #8D751C #338D1C
monochromatic
#110827 #27125A #3D1C8D #5326C0 #7349DB

Accessibility & contrast

On white

12.01
#3D1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3D1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1C8D
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1C8D#FFFFFF#000000##FFFFFF
##3D1C8D1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#1A3D54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1c8d;
/* rgb */ color: rgb(61, 28, 141);
/* oklch */ color: oklch(35.4% 0.170 287.5);
Tailwind
colors: {
  custom: {
    50: '#7c5daf',
    500: '#3d1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #3d1c8d;
$custom-light: #7c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1c8d",
  "rgb": {
    "r": 61,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 257.522,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35437,
    "c": 0.17029,
    "h": 287.5
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#3D1C8D
secondary
#9BBD48
accent
#EA3EB8
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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