#3D1D7E#3D1D7E

#3D1D7E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.151 H 291.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#3D1D7E
RGBrgb(61, 29, 126)
HSLhsl(260, 63%, 30%)
HSVhsv(260, 77%, 49%)
CMYKcmyk(51.6%, 77%, 0%, 50.6%)
CIE-LABlab(21.49, 38.89, -49.16)
CIE-LCHlch(21.49, 62.68, 308.34°)
OKLaboklab(34.06% 0.0548 -0.1412)
OKLCHoklch(34.06% 0.151 291.2)
XYZxyz(6.1287, 3.3769, 20.0635)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D7E #5E7E1D
analogous
#1D2D7E #3D1D7E #6D1D7E
triadic
#3D1D7E #7E3D1D #1D7E3D
tetradic
#3D1D7E #7E1D2D #5E7E1D #1D7E6D
square
#3D1D7E #7E1D2D #5E7E1D #1D7E6D
split-complementary
#3D1D7E #7E6D1D #2D7E1D
monochromatic
#0D061B #25124C #3D1D7E #5528B0 #7242D3

Accessibility & contrast

On white

12.53
#3D1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3D1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D7E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D7E#FFFFFF#000000##FFFFFF
##3D1D7E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#27374C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1d7e;
/* rgb */ color: rgb(61, 29, 126);
/* oklch */ color: oklch(34.1% 0.151 291.2);
Tailwind
colors: {
  custom: {
    50: '#7a5da4',
    500: '#3d1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d7e;
$custom-light: #7a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d7e",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 259.794,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34063,
    "c": 0.15143,
    "h": 291.2
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#3D1D7E
secondary
#8EB145
accent
#E642B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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