#3D1D82#3D1D82

#3D1D82 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.156 H 290.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#3D1D82
RGBrgb(61, 29, 130)
HSLhsl(259, 64%, 31%)
HSVhsv(259, 78%, 51%)
CMYKcmyk(53.1%, 77.7%, 0%, 49%)
CIE-LABlab(21.88, 40.05, -51.06)
CIE-LCHlch(21.88, 64.90, 308.11°)
OKLaboklab(34.45% 0.0537 -0.1467)
OKLCHoklch(34.45% 0.156 290.1)
XYZxyz(6.3919, 3.4823, 21.4501)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D82 #62821D
analogous
#1D2F82 #3D1D82 #6F1D82
triadic
#3D1D82 #823D1D #1D823D
tetradic
#3D1D82 #821D2F #62821D #1D826F
square
#3D1D82 #821D2F #62821D #1D826F
split-complementary
#3D1D82 #826F1D #2F821D
monochromatic
#0E071E #261250 #3D1D82 #5428B4 #7244D5

Accessibility & contrast

On white

12.38
#3D1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3D1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D82
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D82#FFFFFF#000000##FFFFFF
##3D1D821.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#24394E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1d82;
/* rgb */ color: rgb(61, 29, 130);
/* oklch */ color: oklch(34.5% 0.156 290.1);
Tailwind
colors: {
  custom: {
    50: '#7b5da7',
    500: '#3d1d82',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d82;
$custom-light: #7b5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d82",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 259.01,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34453,
    "c": 0.15624,
    "h": 290.1
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#3D1D82
secondary
#92B546
accent
#E741B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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