#3D1A79#3D1A79

#3D1A79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.149 H 293.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#3D1A79
RGBrgb(61, 26, 121)
HSLhsl(262, 65%, 29%)
HSVhsv(262, 79%, 47%)
CMYKcmyk(49.6%, 78.5%, 0%, 52.5%)
CIE-LABlab(20.48, 38.96, -47.64)
CIE-LCHlch(20.48, 61.54, 309.28°)
OKLaboklab(33.21% 0.0588 -0.1367)
OKLCHoklch(33.21% 0.149 293.3)
XYZxyz(5.7441, 3.1112, 18.3833)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A79 #56791A
analogous
#1A2779 #3D1A79 #6D1A79
triadic
#3D1A79 #793D1A #1A793D
tetradic
#3D1A79 #791A27 #56791A #1A796D
square
#3D1A79 #791A27 #56791A #1A796D
split-complementary
#3D1A79 #796D1A #27791A
monochromatic
#0D0519 #240F47 #3D1A79 #5625AB #7239D4

Accessibility & contrast

On white

12.95
#3D1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A79
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A79#FFFFFF#000000##FFFFFF
##3D1A791.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#2A3448
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1a79;
/* rgb */ color: rgb(61, 26, 121);
/* oklch */ color: oklch(33.2% 0.149 293.3);
Tailwind
colors: {
  custom: {
    50: '#795ba1',
    500: '#3d1a79',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a79;
$custom-light: #795ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a79",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 262.105,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33207,
    "c": 0.14879,
    "h": 293.3
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#3D1A79
secondary
#86AD41
accent
#E840AA
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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