#3D1B85#3D1B85

#3D1B85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.162 H 289.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3D1B85
RGBrgb(61, 27, 133)
HSLhsl(259, 66%, 31%)
HSVhsv(259, 80%, 52%)
CMYKcmyk(54.1%, 79.7%, 0%, 47.8%)
CIE-LABlab(21.83, 41.91, -53.03)
CIE-LCHlch(21.83, 67.59, 308.32°)
OKLaboklab(34.51% 0.0544 -0.1525)
OKLCHoklch(34.51% 0.162 289.6)
XYZxyz(6.5488, 3.4691, 22.5103)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B85 #63851B
analogous
#1B2E85 #3D1B85 #721B85
triadic
#3D1B85 #853D1B #1B853D
tetradic
#3D1B85 #851B2E #63851B #1B8572
square
#3D1B85 #851B2E #63851B #1B8572
split-complementary
#3D1B85 #85721B #2E851B
monochromatic
#0E061F #261152 #3D1B85 #5425B8 #7242D9

Accessibility & contrast

On white

12.40
#3D1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3D1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B85
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B85#FFFFFF#000000##FFFFFF
##3D1B851.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#22394F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1b85;
/* rgb */ color: rgb(61, 27, 133);
/* oklch */ color: oklch(34.5% 0.162 289.6);
Tailwind
colors: {
  custom: {
    50: '#7b5caa',
    500: '#3d1b85',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b85;
$custom-light: #7b5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b85",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 259.245,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34509,
    "c": 0.1619,
    "h": 289.6
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#3D1B85
secondary
#93B844
accent
#E93FB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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