#3D1B8A#3D1B8A

#3D1B8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.168 H 288.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3D1B8A
RGBrgb(61, 27, 138)
HSLhsl(258, 67%, 32%)
HSVhsv(258, 80%, 54%)
CMYKcmyk(55.8%, 80.4%, 0%, 45.9%)
CIE-LABlab(22.34, 43.35, -55.33)
CIE-LCHlch(22.34, 70.29, 308.08°)
OKLaboklab(35.02% 0.0529 -0.1592)
OKLCHoklch(35.02% 0.168 288.4)
XYZxyz(6.9025, 3.6106, 24.3730)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B8A #688A1B
analogous
#1B318A #3D1B8A #741B8A
triadic
#3D1B8A #8A3D1B #1B8A3D
tetradic
#3D1B8A #8A1B31 #688A1B #1B8A74
square
#3D1B8A #8A1B31 #688A1B #1B8A74
split-complementary
#3D1B8A #8A741B #318A1B
monochromatic
#100724 #261157 #3D1B8A #5425BD #7345DB

Accessibility & contrast

On white

12.19
#3D1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1B8A
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B8A#FFFFFF#000000##FFFFFF
##3D1B8A1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#1D3B52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1b8a;
/* rgb */ color: rgb(61, 27, 138);
/* oklch */ color: oklch(35.0% 0.168 288.4);
Tailwind
colors: {
  custom: {
    50: '#7c5cad',
    500: '#3d1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b8a;
$custom-light: #7c5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b8a",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 258.378,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35016,
    "c": 0.16775,
    "h": 288.4
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#3D1B8A
secondary
#97BC45
accent
#EA3EB5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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