#3D1B7A#3D1B7A

#3D1B7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.149 H 292.8°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3D1B7A
RGBrgb(61, 27, 122)
HSLhsl(261, 64%, 29%)
HSVhsv(261, 78%, 48%)
CMYKcmyk(50%, 77.9%, 0%, 52.2%)
CIE-LABlab(20.75, 38.74, -47.83)
CIE-LCHlch(20.75, 61.56, 309.01°)
OKLaboklab(33.43% 0.0577 -0.1372)
OKLCHoklch(33.43% 0.149 292.8)
XYZxyz(5.8283, 3.1809, 18.7155)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B7A #587A1B
analogous
#1B297A #3D1B7A #6D1B7A
triadic
#3D1B7A #7A3D1B #1B7A3D
tetradic
#3D1B7A #7A1B29 #587A1B #1B7A6D
square
#3D1B7A #7A1B29 #587A1B #1B7A6D
split-complementary
#3D1B7A #7A6D1B #297A1B
monochromatic
#0D0619 #241048 #3D1B7A #5626AC #723CD4

Accessibility & contrast

On white

12.83
#3D1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B7A
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B7A#FFFFFF#000000##FFFFFF
##3D1B7A1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#2A3549
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1b7a;
/* rgb */ color: rgb(61, 27, 122);
/* oklch */ color: oklch(33.4% 0.149 292.8);
Tailwind
colors: {
  custom: {
    50: '#795ba1',
    500: '#3d1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b7a;
$custom-light: #795ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b7a",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 261.474,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33426,
    "c": 0.14886,
    "h": 292.8
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#3D1B7A
secondary
#88AE43
accent
#E741AB
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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