#3D1D94#3D1D94

#3D1D94 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.178 H 285.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#3D1D94
RGBrgb(61, 29, 148)
HSLhsl(256, 67%, 35%)
HSVhsv(256, 80%, 58%)
CMYKcmyk(58.8%, 80.4%, 0%, 42%)
CIE-LABlab(23.70, 45.30, -59.31)
CIE-LCHlch(23.70, 74.63, 307.37°)
OKLaboklab(36.27% 0.0483 -0.1708)
OKLCHoklch(36.27% 0.178 285.8)
XYZxyz(7.7075, 4.0085, 28.3788)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D94 #74941D
analogous
#1D3994 #3D1D94 #781D94
triadic
#3D1D94 #943D1D #1D943D
tetradic
#3D1D94 #941D39 #74941D #1D9478
square
#3D1D94 #941D39 #74941D #1D9478
split-complementary
#3D1D94 #94781D #39941D
monochromatic
#13092E #281361 #3D1D94 #5227C7 #754FDC

Accessibility & contrast

On white

11.66
#3D1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D1D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D94
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D94#FFFFFF#000000##FFFFFF
##3D1D941.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#0F4058
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1d94;
/* rgb */ color: rgb(61, 29, 148);
/* oklch */ color: oklch(36.3% 0.178 285.8);
Tailwind
colors: {
  custom: {
    50: '#7e5eb5',
    500: '#3d1d94',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d94;
$custom-light: #7e5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d94",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 256.134,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36273,
    "c": 0.17752,
    "h": 285.8
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#3D1D94
secondary
#A1BF4E
accent
#EA3EBC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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