#3D1B8B#3D1B8B

#3D1B8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.169 H 288.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3D1B8B
RGBrgb(61, 27, 139)
HSLhsl(258, 67%, 33%)
HSVhsv(258, 81%, 55%)
CMYKcmyk(56.1%, 80.6%, 0%, 45.5%)
CIE-LABlab(22.44, 43.63, -55.79)
CIE-LCHlch(22.44, 70.83, 308.03°)
OKLaboklab(35.12% 0.0525 -0.1605)
OKLCHoklch(35.12% 0.169 288.1)
XYZxyz(6.9752, 3.6397, 24.7561)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B8B #698B1B
analogous
#1B318B #3D1B8B #751B8B
triadic
#3D1B8B #8B3D1B #1B8B3D
tetradic
#3D1B8B #8B1B31 #698B1B #1B8B75
square
#3D1B8B #8B1B31 #698B1B #1B8B75
split-complementary
#3D1B8B #8B751B #318B1B
monochromatic
#100725 #271158 #3D1B8B #5325BE #7345DB

Accessibility & contrast

On white

12.15
#3D1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B8B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B8B#FFFFFF#000000##FFFFFF
##3D1B8B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#1C3C53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1b8b;
/* rgb */ color: rgb(61, 27, 139);
/* oklch */ color: oklch(35.1% 0.169 288.1);
Tailwind
colors: {
  custom: {
    50: '#7c5cae',
    500: '#3d1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b8b;
$custom-light: #7c5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b8b",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 258.214,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35119,
    "c": 0.16891,
    "h": 288.1
  },
  "luminance": 0.0364
}

Semantic roles & 50–950 ramp

primary
#3D1B8B
secondary
#98BC45
accent
#EA3DB6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3D1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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