#3D1B72#3D1B72

#3D1B72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.139 H 295.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#3D1B72
RGBrgb(61, 27, 114)
HSLhsl(263, 62%, 28%)
HSVhsv(263, 76%, 45%)
CMYKcmyk(46.5%, 76.3%, 0%, 55.3%)
CIE-LABlab(20.01, 36.45, -43.92)
CIE-LCHlch(20.01, 57.08, 309.69°)
OKLaboklab(32.67% 0.0598 -0.1258)
OKLCHoklch(32.67% 0.139 295.4)
XYZxyz(5.3528, 2.9907, 16.2116)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B72 #50721B
analogous
#1B2572 #3D1B72 #681B72
triadic
#3D1B72 #723D1B #1B723D
tetradic
#3D1B72 #721B25 #50721B #1B7268
square
#3D1B72 #721B25 #50721B #1B7268
split-complementary
#3D1B72 #72681B #25721B
monochromatic
#0D0619 #230F41 #3D1B72 #5727A3 #7338D0

Accessibility & contrast

On white

13.14
#3D1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3D1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B72
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B72#FFFFFF#000000##FFFFFF
##3D1B721.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#2E3245
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d1b72;
/* rgb */ color: rgb(61, 27, 114);
/* oklch */ color: oklch(32.7% 0.139 295.4);
Tailwind
colors: {
  custom: {
    50: '#785b9b',
    500: '#3d1b72',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b72;
$custom-light: #785b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b72",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 263.448,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32669,
    "c": 0.13924,
    "h": 295.4
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#3D1B72
secondary
#7FA742
accent
#E543A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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