#3D1A8D#3D1A8D

#3D1A8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.172 H 287.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3D1A8D
RGBrgb(61, 26, 141)
HSLhsl(258, 69%, 33%)
HSVhsv(258, 82%, 55%)
CMYKcmyk(56.7%, 81.6%, 0%, 44.7%)
CIE-LABlab(22.49, 44.67, -56.96)
CIE-LCHlch(22.49, 72.38, 308.11°)
OKLaboklab(35.22% 0.0526 -0.1639)
OKLCHoklch(35.22% 0.172 287.8)
XYZxyz(7.1002, 3.6536, 25.5252)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A8D #6A8D1A
analogous
#1A308D #3D1A8D #761A8D
triadic
#3D1A8D #8D3D1A #1A8D3D
tetradic
#3D1A8D #8D1A30 #6A8D1A #1A8D76
square
#3D1A8D #8D1A30 #6A8D1A #1A8D76
split-complementary
#3D1A8D #8D761A #308D1A
monochromatic
#100726 #271059 #3D1A8D #5324C1 #7345DD

Accessibility & contrast

On white

12.13
#3D1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A8D
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A8D#FFFFFF#000000##FFFFFF
##3D1A8D1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#1A3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1a8d;
/* rgb */ color: rgb(61, 26, 141);
/* oklch */ color: oklch(35.2% 0.172 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d5caf',
    500: '#3d1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a8d;
$custom-light: #7d5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a8d",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 258.261,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.17215,
    "h": 287.8
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#3D1A8D
secondary
#99BE45
accent
#EC3CB6
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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