#3D1F79#3D1F79

#3D1F79 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.143 H 292.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3D1F79
RGBrgb(61, 31, 121)
HSLhsl(260, 59%, 30%)
HSVhsv(260, 74%, 47%)
CMYKcmyk(49.6%, 74.4%, 0%, 52.5%)
CIE-LABlab(21.40, 36.36, -46.13)
CIE-LCHlch(21.40, 58.74, 308.24°)
OKLaboklab(33.86% 0.0542 -0.1323)
OKLCHoklch(33.86% 0.143 292.3)
XYZxyz(5.8647, 3.3523, 18.4235)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F79 #5B791F
analogous
#1F2E79 #3D1F79 #6A1F79
triadic
#3D1F79 #793D1F #1F793D
tetradic
#3D1F79 #791F2E #5B791F #1F796A
square
#3D1F79 #791F2E #5B791F #1F796A
split-complementary
#3D1F79 #796A1F #2E791F
monochromatic
#0C0618 #241348 #3D1F79 #562BAA #7243CF

Accessibility & contrast

On white

12.57
#3D1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3D1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F79
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F79#FFFFFF#000000##FFFFFF
##3D1F791.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#2A364A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1f79;
/* rgb */ color: rgb(61, 31, 121);
/* oklch */ color: oklch(33.9% 0.143 292.3);
Tailwind
colors: {
  custom: {
    50: '#795da1',
    500: '#3d1f79',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f79;
$custom-light: #795da1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f79",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 260,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33855,
    "c": 0.14294,
    "h": 292.3
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

primary
#3D1F79
secondary
#8BAC47
accent
#E245AE
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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