#3D1D87#3D1D87

#3D1D87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.162 H 288.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3D1D87
RGBrgb(61, 29, 135)
HSLhsl(258, 65%, 32%)
HSVhsv(258, 79%, 53%)
CMYKcmyk(54.8%, 78.5%, 0%, 47.1%)
CIE-LABlab(22.37, 41.51, -53.40)
CIE-LCHlch(22.37, 67.64, 307.86°)
OKLaboklab(34.95% 0.0523 -0.1536)
OKLCHoklch(34.95% 0.162 288.8)
XYZxyz(6.7357, 3.6198, 23.2607)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D87 #67871D
analogous
#1D3287 #3D1D87 #721D87
triadic
#3D1D87 #873D1D #1D873D
tetradic
#3D1D87 #871D32 #67871D #1D8772
square
#3D1D87 #871D32 #67871D #1D8772
split-complementary
#3D1D87 #87721D #32871D
monochromatic
#0F0722 #261255 #3D1D87 #5428B9 #7347D7

Accessibility & contrast

On white

12.18
#3D1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D87
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D87#FFFFFF#000000##FFFFFF
##3D1D871.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#203B51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1d87;
/* rgb */ color: rgb(61, 29, 135);
/* oklch */ color: oklch(34.9% 0.162 288.8);
Tailwind
colors: {
  custom: {
    50: '#7b5dab',
    500: '#3d1d87',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d87;
$custom-light: #7b5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d87",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 258.113,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34947,
    "c": 0.16222,
    "h": 288.8
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#3D1D87
secondary
#97B946
accent
#E840B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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