#3D1784#3D1784

#3D1784 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.165 H 290.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3D1784
RGBrgb(61, 23, 132)
HSLhsl(261, 70%, 30%)
HSVhsv(261, 83%, 52%)
CMYKcmyk(53.8%, 82.6%, 0%, 48.2%)
CIE-LABlab(21.10, 43.46, -53.61)
CIE-LCHlch(21.10, 69.01, 309.03°)
OKLaboklab(33.97% 0.0577 -0.1541)
OKLCHoklch(33.97% 0.165 290.5)
XYZxyz(6.3945, 3.2706, 22.1197)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1784 #5E8417
analogous
#172884 #3D1784 #731784
triadic
#3D1784 #843D17 #17843D
tetradic
#3D1784 #841728 #5E8417 #178473
square
#3D1784 #841728 #5E8417 #178473
split-complementary
#3D1784 #847317 #288417
monochromatic
#0D051C #250E50 #3D1784 #5520B8 #7239DC

Accessibility & contrast

On white

12.69
#3D1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1784
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1784#FFFFFF#000000##FFFFFF
##3D17841.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#23374E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1784;
/* rgb */ color: rgb(61, 23, 132);
/* oklch */ color: oklch(34.0% 0.165 290.5);
Tailwind
colors: {
  custom: {
    50: '#7b5aa9',
    500: '#3d1784',
    950: '#000000',
  },
}
SCSS
$custom: #3d1784;
$custom-light: #7b5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1784",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 260.917,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33967,
    "c": 0.16458,
    "h": 290.5
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#3D1784
secondary
#8EB83F
accent
#ED3BAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1784

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

Preview Lab → · Contrast checker → · Palette generator →

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