#3D1C8A#3D1C8A

#3D1C8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.167 H 288.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3D1C8A
RGBrgb(61, 28, 138)
HSLhsl(258, 66%, 33%)
HSVhsv(258, 80%, 54%)
CMYKcmyk(55.8%, 79.7%, 0%, 45.9%)
CIE-LABlab(22.50, 42.87, -55.06)
CIE-LCHlch(22.50, 69.79, 307.91°)
OKLaboklab(35.13% 0.0521 -0.1584)
OKLCHoklch(35.13% 0.167 288.2)
XYZxyz(6.9258, 3.6572, 24.3808)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1C8A #698A1C
analogous
#1C328A #3D1C8A #741C8A
triadic
#3D1C8A #8A3D1C #1C8A3D
tetradic
#3D1C8A #8A1C32 #698A1C #1C8A74
square
#3D1C8A #8A1C32 #698A1C #1C8A74
split-complementary
#3D1C8A #8A741C #328A1C
monochromatic
#100724 #271257 #3D1C8A #5326BD #7347DA

Accessibility & contrast

On white

12.13
#3D1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1C8A
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1C8A#FFFFFF#000000##FFFFFF
##3D1C8A1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#1D3C53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1c8a;
/* rgb */ color: rgb(61, 28, 138);
/* oklch */ color: oklch(35.1% 0.167 288.2);
Tailwind
colors: {
  custom: {
    50: '#7c5dad',
    500: '#3d1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #3d1c8a;
$custom-light: #7c5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1c8a",
  "rgb": {
    "r": 61,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 258,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35131,
    "c": 0.16678,
    "h": 288.2
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#3D1C8A
secondary
#98BB46
accent
#E93FB6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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