#3D1D74#3D1D74

#3D1D74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.139 H 294.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#3D1D74
RGBrgb(61, 29, 116)
HSLhsl(262, 60%, 28%)
HSVhsv(262, 75%, 45%)
CMYKcmyk(47.4%, 75%, 0%, 54.5%)
CIE-LABlab(20.56, 35.97, -44.30)
CIE-LCHlch(20.56, 57.07, 309.08°)
OKLaboklab(33.12% 0.0573 -0.1269)
OKLCHoklch(33.12% 0.139 294.3)
XYZxyz(5.5154, 3.1316, 16.8335)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D74 #54741D
analogous
#1D2874 #3D1D74 #681D74
triadic
#3D1D74 #743D1D #1D743D
tetradic
#3D1D74 #741D28 #54741D #1D7468
square
#3D1D74 #741D28 #54741D #1D7468
split-complementary
#3D1D74 #74681D #28741D
monochromatic
#0D0618 #231143 #3D1D74 #5729A5 #723DCE

Accessibility & contrast

On white

12.91
#3D1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D1D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D74
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D74#FFFFFF#000000##FFFFFF
##3D1D741.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#2D3346
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1d74;
/* rgb */ color: rgb(61, 29, 116);
/* oklch */ color: oklch(33.1% 0.139 294.3);
Tailwind
colors: {
  custom: {
    50: '#785c9d',
    500: '#3d1d74',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d74;
$custom-light: #785c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d74",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 262.069,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33119,
    "c": 0.13922,
    "h": 294.3
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#3D1D74
secondary
#84A845
accent
#E345A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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