#3D1F74#3D1F74

#3D1F74 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.137 H 293.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3D1F74
RGBrgb(61, 31, 116)
HSLhsl(261, 58%, 29%)
HSVhsv(261, 73%, 45%)
CMYKcmyk(47.4%, 73.3%, 0%, 54.5%)
CIE-LABlab(20.95, 34.88, -43.66)
CIE-LCHlch(20.95, 55.89, 308.62°)
OKLaboklab(33.4% 0.0552 -0.125)
OKLCHoklch(33.4% 0.137 293.8)
XYZxyz(5.5660, 3.2329, 16.8504)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F74 #56741F
analogous
#1F2C74 #3D1F74 #681F74
triadic
#3D1F74 #743D1F #1F743D
tetradic
#3D1F74 #741F2C #56741F #1F7468
square
#3D1F74 #741F2C #56741F #1F7468
split-complementary
#3D1F74 #74681F #2C741F
monochromatic
#0D0618 #241244 #3D1F74 #562CA4 #7241CC

Accessibility & contrast

On white

12.75
#3D1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F74
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F74#FFFFFF#000000##FFFFFF
##3D1F741.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#2D3447
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1f74;
/* rgb */ color: rgb(61, 31, 116);
/* oklch */ color: oklch(33.4% 0.137 293.8);
Tailwind
colors: {
  custom: {
    50: '#785d9d',
    500: '#3d1f74',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f74;
$custom-light: #785d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f74",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 261.176,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33396,
    "c": 0.13669,
    "h": 293.8
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#3D1F74
secondary
#86A847
accent
#E147AB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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