#3D1F72#3D1F72

#3D1F72 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.134 H 294.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3D1F72
RGBrgb(61, 31, 114)
HSLhsl(262, 57%, 28%)
HSVhsv(262, 73%, 45%)
CMYKcmyk(46.5%, 72.8%, 0%, 55.3%)
CIE-LABlab(20.78, 34.30, -42.67)
CIE-LCHlch(20.78, 54.74, 308.79°)
OKLaboklab(33.22% 0.0556 -0.1221)
OKLCHoklch(33.22% 0.134 294.5)
XYZxyz(5.4509, 3.1868, 16.2442)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F72 #54721F
analogous
#1F2A72 #3D1F72 #661F72
triadic
#3D1F72 #723D1F #1F723D
tetradic
#3D1F72 #721F2A #54721F #1F7266
square
#3D1F72 #721F2A #54721F #1F7266
split-complementary
#3D1F72 #72661F #2A721F
monochromatic
#0D0718 #231242 #3D1F72 #572CA2 #7240CB

Accessibility & contrast

On white

12.83
#3D1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F72
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F72#FFFFFF#000000##FFFFFF
##3D1F721.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#2E3446
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1f72;
/* rgb */ color: rgb(61, 31, 114);
/* oklch */ color: oklch(33.2% 0.134 294.5);
Tailwind
colors: {
  custom: {
    50: '#785d9b',
    500: '#3d1f72',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f72;
$custom-light: #785d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f72",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 261.687,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33216,
    "c": 0.13417,
    "h": 294.5
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#3D1F72
secondary
#84A647
accent
#E047A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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