#3D1B82#3D1B82

#3D1B82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.158 H 290.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#3D1B82
RGBrgb(61, 27, 130)
HSLhsl(260, 66%, 31%)
HSVhsv(260, 79%, 51%)
CMYKcmyk(53.1%, 79.2%, 0%, 49%)
CIE-LABlab(21.53, 41.05, -51.63)
CIE-LCHlch(21.53, 65.96, 308.48°)
OKLaboklab(34.21% 0.0554 -0.1484)
OKLCHoklch(34.21% 0.158 290.5)
XYZxyz(6.3445, 3.3874, 21.4343)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B82 #60821B
analogous
#1B2C82 #3D1B82 #701B82
triadic
#3D1B82 #823D1B #1B823D
tetradic
#3D1B82 #821B2C #60821B #1B8270
square
#3D1B82 #821B2C #60821B #1B8270
split-complementary
#3D1B82 #82701B #2C821B
monochromatic
#0D061D #25104F #3D1B82 #5526B5 #7240D7

Accessibility & contrast

On white

12.52
#3D1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1B82
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B82#FFFFFF#000000##FFFFFF
##3D1B821.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#24384E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1b82;
/* rgb */ color: rgb(61, 27, 130);
/* oklch */ color: oklch(34.2% 0.158 290.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ca7',
    500: '#3d1b82',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b82;
$custom-light: #7b5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b82",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 259.806,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34209,
    "c": 0.15836,
    "h": 290.5
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#3D1B82
secondary
#90B643
accent
#E93FB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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