#3D1B7C#3D1B7C

#3D1B7C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.151 H 292.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3D1B7C
RGBrgb(61, 27, 124)
HSLhsl(261, 64%, 30%)
HSVhsv(261, 78%, 49%)
CMYKcmyk(50.8%, 78.2%, 0%, 51.4%)
CIE-LABlab(20.95, 39.32, -48.79)
CIE-LCHlch(20.95, 62.66, 308.86°)
OKLaboklab(33.62% 0.0571 -0.14)
OKLCHoklch(33.62% 0.151 292.2)
XYZxyz(5.9535, 3.2310, 19.3748)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B7C #5A7C1B
analogous
#1B2A7C #3D1B7C #6E1B7C
triadic
#3D1B7C #7C3D1B #1B7C3D
tetradic
#3D1B7C #7C1B2A #5A7C1B #1B7C6E
square
#3D1B7C #7C1B2A #5A7C1B #1B7C6E
split-complementary
#3D1B7C #7C6E1B #2A7C1B
monochromatic
#0C0519 #24104A #3D1B7C #5626AE #723DD5

Accessibility & contrast

On white

12.76
#3D1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1B7C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B7C#FFFFFF#000000##FFFFFF
##3D1B7C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#29364A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1b7c;
/* rgb */ color: rgb(61, 27, 124);
/* oklch */ color: oklch(33.6% 0.151 292.2);
Tailwind
colors: {
  custom: {
    50: '#7a5ba3',
    500: '#3d1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b7c;
$custom-light: #7a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b7c",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 261.031,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33619,
    "c": 0.15125,
    "h": 292.2
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#3D1B7C
secondary
#8AB043
accent
#E741AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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