#3D1F71#3D1F71

#3D1F71 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.133 H 294.8°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3D1F71
RGBrgb(61, 31, 113)
HSLhsl(262, 57%, 28%)
HSVhsv(262, 73%, 44%)
CMYKcmyk(46%, 72.6%, 0%, 55.7%)
CIE-LABlab(20.69, 34.00, -42.16)
CIE-LCHlch(20.69, 54.16, 308.88°)
OKLaboklab(33.13% 0.0558 -0.1206)
OKLCHoklch(33.13% 0.133 294.8)
XYZxyz(5.3943, 3.1642, 15.9461)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F71 #53711F
analogous
#1F2A71 #3D1F71 #661F71
triadic
#3D1F71 #713D1F #1F713D
tetradic
#3D1F71 #711F2A #53711F #1F7166
square
#3D1F71 #711F2A #53711F #1F7166
split-complementary
#3D1F71 #71661F #2A711F
monochromatic
#0D0718 #231241 #3D1F71 #572CA1 #7340CB

Accessibility & contrast

On white

12.86
#3D1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1F71
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F71#FFFFFF#000000##FFFFFF
##3D1F711.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#2F3345
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1f71;
/* rgb */ color: rgb(61, 31, 113);
/* oklch */ color: oklch(33.1% 0.133 294.8);
Tailwind
colors: {
  custom: {
    50: '#785d9a',
    500: '#3d1f71',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f71;
$custom-light: #785d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f71",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 261.951,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33126,
    "c": 0.13291,
    "h": 294.8
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#3D1F71
secondary
#83A547
accent
#E048A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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