#3D1B95#3D1B95

#3D1B95 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.180 H 285.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3D1B95
RGBrgb(61, 27, 149)
HSLhsl(257, 69%, 35%)
HSVhsv(257, 82%, 58%)
CMYKcmyk(59.1%, 81.9%, 0%, 41.6%)
CIE-LABlab(23.49, 46.50, -60.27)
CIE-LCHlch(23.49, 76.12, 307.65°)
OKLaboklab(36.16% 0.0492 -0.1736)
OKLCHoklch(36.16% 0.18 285.8)
XYZxyz(7.7396, 3.9454, 28.7817)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B95 #73951B
analogous
#1B3695 #3D1B95 #7A1B95
triadic
#3D1B95 #953D1B #1B953D
tetradic
#3D1B95 #951B36 #73951B #1B957A
square
#3D1B95 #951B36 #73951B #1B957A
split-complementary
#3D1B95 #957A1B #36951B
monochromatic
#13082D #281261 #3D1B95 #5224C9 #754CDF

Accessibility & contrast

On white

11.74
#3D1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3D1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B95
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B95#FFFFFF#000000##FFFFFF
##3D1B951.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#0D4059
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1b95;
/* rgb */ color: rgb(61, 27, 149);
/* oklch */ color: oklch(36.2% 0.180 285.8);
Tailwind
colors: {
  custom: {
    50: '#7e5db5',
    500: '#3d1b95',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b95;
$custom-light: #7e5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b95",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 256.721,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36159,
    "c": 0.18046,
    "h": 285.8
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#3D1B95
secondary
#A0C14B
accent
#EC3CBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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