#3D1B71#3D1B71

#3D1B71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.138 H 295.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#3D1B71
RGBrgb(61, 27, 113)
HSLhsl(264, 61%, 27%)
HSVhsv(264, 76%, 44%)
CMYKcmyk(46%, 76.1%, 0%, 55.7%)
CIE-LABlab(19.92, 36.17, -43.43)
CIE-LCHlch(19.92, 56.51, 309.79°)
OKLaboklab(32.58% 0.06 -0.1243)
OKLCHoklch(32.58% 0.138 295.8)
XYZxyz(5.2962, 2.9681, 15.9134)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B71 #4F711B
analogous
#1B2471 #3D1B71 #681B71
triadic
#3D1B71 #713D1B #1B713D
tetradic
#3D1B71 #711B24 #4F711B #1B7168
square
#3D1B71 #711B24 #4F711B #1B7168
split-complementary
#3D1B71 #71681B #24711B
monochromatic
#0D0619 #220F40 #3D1B71 #5827A2 #7337CF

Accessibility & contrast

On white

13.18
#3D1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3D1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B71
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B71#FFFFFF#000000##FFFFFF
##3D1B711.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#2F3144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d1b71;
/* rgb */ color: rgb(61, 27, 113);
/* oklch */ color: oklch(32.6% 0.138 295.8);
Tailwind
colors: {
  custom: {
    50: '#785b9b',
    500: '#3d1b71',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b71;
$custom-light: #785b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b71",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 263.721,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32576,
    "c": 0.13803,
    "h": 295.8
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#3D1B71
secondary
#7EA642
accent
#E543A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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