#3D1C8E#3D1C8E

#3D1C8E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.171 H 287.3°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#3D1C8E
RGBrgb(61, 28, 142)
HSLhsl(257, 67%, 33%)
HSVhsv(257, 80%, 56%)
CMYKcmyk(57%, 80.3%, 0%, 44.3%)
CIE-LABlab(22.91, 44.03, -56.88)
CIE-LCHlch(22.91, 71.93, 307.74°)
OKLaboklab(35.54% 0.0509 -0.1637)
OKLCHoklch(35.54% 0.171 287.3)
XYZxyz(7.2208, 3.7752, 25.9341)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1C8E #6D8E1C
analogous
#1C348E #3D1C8E #761C8E
triadic
#3D1C8E #8E3D1C #1C8E3D
tetradic
#3D1C8E #8E1C34 #6D8E1C #1C8E76
square
#3D1C8E #8E1C34 #6D8E1C #1C8E76
split-complementary
#3D1C8E #8E761C #348E1C
monochromatic
#110828 #27125B #3D1C8E #5326C1 #7349DB

Accessibility & contrast

On white

11.96
#3D1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3D1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1C8E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1C8E#FFFFFF#000000##FFFFFF
##3D1C8E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#183D55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d1c8e;
/* rgb */ color: rgb(61, 28, 142);
/* oklch */ color: oklch(35.5% 0.171 287.3);
Tailwind
colors: {
  custom: {
    50: '#7d5db0',
    500: '#3d1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #3d1c8e;
$custom-light: #7d5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1c8e",
  "rgb": {
    "r": 61,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 257.368,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3554,
    "c": 0.17146,
    "h": 287.3
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#3D1C8E
secondary
#9BBD49
accent
#EA3EB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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