#3D1771#3D1771

#3D1771 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.143 H 296.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#3D1771
RGBrgb(61, 23, 113)
HSLhsl(265, 66%, 27%)
HSVhsv(265, 80%, 44%)
CMYKcmyk(46%, 79.6%, 0%, 55.7%)
CIE-LABlab(19.21, 38.17, -44.58)
CIE-LCHlch(19.21, 58.68, 310.57°)
OKLaboklab(32.08% 0.0638 -0.1277)
OKLCHoklch(32.08% 0.143 296.6)
XYZxyz(5.2107, 2.7970, 15.8849)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1771 #4B7117
analogous
#171E71 #3D1771 #6A1771
triadic
#3D1771 #713D17 #17713D
tetradic
#3D1771 #71171E #4B7117 #17716A
square
#3D1771 #71171E #4B7117 #17716A
split-complementary
#3D1771 #716A17 #1E7117
monochromatic
#0E0519 #220D3E #3D1771 #5821A4 #742ED4

Accessibility & contrast

On white

13.47
#3D1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3D1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1771
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1771#FFFFFF#000000##FFFFFF
##3D17711.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#2F2F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3d1771;
/* rgb */ color: rgb(61, 23, 113);
/* oklch */ color: oklch(32.1% 0.143 296.6);
Tailwind
colors: {
  custom: {
    50: '#78599b',
    500: '#3d1771',
    950: '#000000',
  },
}
SCSS
$custom: #3d1771;
$custom-light: #78599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1771",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 265.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32081,
    "c": 0.14272,
    "h": 296.6
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#3D1771
secondary
#7AA73D
accent
#E93FA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1771

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

Preview Lab → · Contrast checker → · Palette generator →

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