#3D1781#3D1781

#3D1781 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.161 H 291.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#3D1781
RGBrgb(61, 23, 129)
HSLhsl(262, 70%, 30%)
HSVhsv(262, 82%, 51%)
CMYKcmyk(52.7%, 82.2%, 0%, 49.4%)
CIE-LABlab(20.79, 42.62, -52.23)
CIE-LCHlch(20.79, 67.41, 309.22°)
OKLaboklab(33.66% 0.0588 -0.1501)
OKLCHoklch(33.66% 0.161 291.4)
XYZxyz(6.1922, 3.1896, 21.0540)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1781 #5B8117
analogous
#172681 #3D1781 #721781
triadic
#3D1781 #813D17 #17813D
tetradic
#3D1781 #811726 #5B8117 #178172
square
#3D1781 #811726 #5B8117 #178172
split-complementary
#3D1781 #817217 #268117
monochromatic
#0C051A #240E4D #3D1781 #5620B5 #7237DB

Accessibility & contrast

On white

12.82
#3D1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1781
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1781#FFFFFF#000000##FFFFFF
##3D17811.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#25364C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1781;
/* rgb */ color: rgb(61, 23, 129);
/* oklch */ color: oklch(33.7% 0.161 291.4);
Tailwind
colors: {
  custom: {
    50: '#7b5aa7',
    500: '#3d1781',
    950: '#000000',
  },
}
SCSS
$custom: #3d1781;
$custom-light: #7b5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1781",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 261.509,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3366,
    "c": 0.16116,
    "h": 291.4
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#3D1781
secondary
#8BB53E
accent
#ED3BAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1781

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

Preview Lab → · Contrast checker → · Palette generator →

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