#3D1A84#3D1A84

#3D1A84 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.162 H 290.1°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#3D1A84
RGBrgb(61, 26, 132)
HSLhsl(260, 67%, 31%)
HSVhsv(260, 80%, 52%)
CMYKcmyk(53.8%, 80.3%, 0%, 48.2%)
CIE-LABlab(21.57, 42.10, -52.84)
CIE-LCHlch(21.57, 67.56, 308.55°)
OKLaboklab(34.29% 0.0555 -0.1519)
OKLCHoklch(34.29% 0.162 290.1)
XYZxyz(6.4575, 3.3965, 22.1407)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A84 #61841A
analogous
#1A2C84 #3D1A84 #721A84
triadic
#3D1A84 #843D1A #1A843D
tetradic
#3D1A84 #841A2C #61841A #1A8472
square
#3D1A84 #841A2C #61841A #1A8472
split-complementary
#3D1A84 #84721A #2C841A
monochromatic
#0E061E #251051 #3D1A84 #5524B7 #723FD9

Accessibility & contrast

On white

12.50
#3D1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3D1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A84
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A84#FFFFFF#000000##FFFFFF
##3D1A841.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#23384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1a84;
/* rgb */ color: rgb(61, 26, 132);
/* oklch */ color: oklch(34.3% 0.162 290.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ba9',
    500: '#3d1a84',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a84;
$custom-light: #7b5ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a84",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 259.811,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34294,
    "c": 0.16172,
    "h": 290.1
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#3D1A84
secondary
#91B842
accent
#EA3EB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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