#3D1F8D#3D1F8D

#3D1F8D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.167 H 287.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#3D1F8D
RGBrgb(61, 31, 141)
HSLhsl(256, 64%, 34%)
HSVhsv(256, 78%, 55%)
CMYKcmyk(56.7%, 78%, 0%, 44.7%)
CIE-LABlab(23.32, 42.28, -55.59)
CIE-LCHlch(23.32, 69.84, 307.25°)
OKLaboklab(35.79% 0.049 -0.16)
OKLCHoklch(35.79% 0.167 287)
XYZxyz(7.2207, 3.8948, 25.5654)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F8D #6F8D1F
analogous
#1F388D #3D1F8D #741F8D
triadic
#3D1F8D #8D3D1F #1F8D3D
tetradic
#3D1F8D #8D1F38 #6F8D1F #1F8D74
square
#3D1F8D #8D1F38 #6F8D1F #1F8D74
split-complementary
#3D1F8D #8D741F #388D1F
monochromatic
#120929 #27145B #3D1F8D #532ABF #744ED8

Accessibility & contrast

On white

11.80
#3D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F8D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F8D#FFFFFF#000000##FFFFFF
##3D1F8D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#193E55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1f8d;
/* rgb */ color: rgb(61, 31, 141);
/* oklch */ color: oklch(35.8% 0.167 287.0);
Tailwind
colors: {
  custom: {
    50: '#7c5faf',
    500: '#3d1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f8d;
$custom-light: #7c5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f8d",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 256.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35793,
    "c": 0.16732,
    "h": 287
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#3D1F8D
secondary
#9DBB4D
accent
#E741BA
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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