#3D1C82#3D1C82

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

Color values

HEX#3D1C82
RGBrgb(61, 28, 130)
HSLhsl(259, 65%, 31%)
HSVhsv(259, 78%, 51%)
CMYKcmyk(53.1%, 78.5%, 0%, 49%)
CIE-LABlab(21.70, 40.55, -51.35)
CIE-LCHlch(21.70, 65.43, 308.30°)
OKLaboklab(34.33% 0.0545 -0.1476)
OKLCHoklch(34.33% 0.157 290.3)
XYZxyz(6.3678, 3.4340, 21.4421)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1C82 #61821C
analogous
#1C2E82 #3D1C82 #701C82
triadic
#3D1C82 #823D1C #1C823D
tetradic
#3D1C82 #821C2E #61821C #1C8270
square
#3D1C82 #821C2E #61821C #1C8270
split-complementary
#3D1C82 #82701C #2E821C
monochromatic
#0E061D #251150 #3D1C82 #5527B4 #7242D6

Accessibility & contrast

On white

12.45
#3D1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3D1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1C82
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1C82#FFFFFF#000000##FFFFFF
##3D1C821.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1c82;
/* rgb */ color: rgb(61, 28, 130);
/* oklch */ color: oklch(34.3% 0.157 290.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ca7',
    500: '#3d1c82',
    950: '#000000',
  },
}
SCSS
$custom: #3d1c82;
$custom-light: #7b5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1c82",
  "rgb": {
    "r": 61,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 259.412,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34329,
    "c": 0.15732,
    "h": 290.3
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#3D1C82
secondary
#91B544
accent
#E840B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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