#3D1A78#3D1A78

#3D1A78 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.148 H 293.6°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#3D1A78
RGBrgb(61, 26, 120)
HSLhsl(262, 64%, 29%)
HSVhsv(262, 78%, 47%)
CMYKcmyk(49.2%, 78.3%, 0%, 52.9%)
CIE-LABlab(20.39, 38.67, -47.15)
CIE-LCHlch(20.39, 60.98, 309.36°)
OKLaboklab(33.11% 0.0591 -0.1352)
OKLCHoklch(33.11% 0.148 293.6)
XYZxyz(5.6831, 3.0868, 18.0620)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A78 #55781A
analogous
#1A2678 #3D1A78 #6C1A78
triadic
#3D1A78 #783D1A #1A783D
tetradic
#3D1A78 #781A26 #55781A #1A786C
square
#3D1A78 #781A26 #55781A #1A786C
split-complementary
#3D1A78 #786C1A #26781A
monochromatic
#0D0519 #230F46 #3D1A78 #5725AA #7238D4

Accessibility & contrast

On white

12.98
#3D1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1A78
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A78#FFFFFF#000000##FFFFFF
##3D1A781.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2B3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1a78;
/* rgb */ color: rgb(61, 26, 120);
/* oklch */ color: oklch(33.1% 0.148 293.6);
Tailwind
colors: {
  custom: {
    50: '#795ba0',
    500: '#3d1a78',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a78;
$custom-light: #795ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a78",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 262.34,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3311,
    "c": 0.1476,
    "h": 293.6
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#3D1A78
secondary
#85AC41
accent
#E740A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3D1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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