#3D1F76#3D1F76

#3D1F76 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.139 H 293.2°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3D1F76
RGBrgb(61, 31, 118)
HSLhsl(261, 58%, 29%)
HSVhsv(261, 74%, 46%)
CMYKcmyk(48.3%, 73.7%, 0%, 53.7%)
CIE-LABlab(21.13, 35.47, -44.66)
CIE-LCHlch(21.13, 57.03, 308.46°)
OKLaboklab(33.58% 0.0548 -0.1279)
OKLCHoklch(33.58% 0.139 293.2)
XYZxyz(5.6836, 3.2799, 17.4697)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F76 #58761F
analogous
#1F2D76 #3D1F76 #691F76
triadic
#3D1F76 #763D1F #1F763D
tetradic
#3D1F76 #761F2D #58761F #1F7669
square
#3D1F76 #761F2D #58761F #1F7669
split-complementary
#3D1F76 #76691F #2D761F
monochromatic
#0D0618 #241246 #3D1F76 #562CA6 #7242CD

Accessibility & contrast

On white

12.68
#3D1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3D1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F76
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F76#FFFFFF#000000##FFFFFF
##3D1F761.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#2C3548
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1f76;
/* rgb */ color: rgb(61, 31, 118);
/* oklch */ color: oklch(33.6% 0.139 293.2);
Tailwind
colors: {
  custom: {
    50: '#785d9e',
    500: '#3d1f76',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f76;
$custom-light: #785d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f76",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 260.69,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33579,
    "c": 0.13919,
    "h": 293.2
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#3D1F76
secondary
#88AA47
accent
#E246AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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