#3D1D8B#3D1D8B

#3D1D8B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.167 H 287.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3D1D8B
RGBrgb(61, 29, 139)
HSLhsl(257, 65%, 33%)
HSVhsv(257, 79%, 55%)
CMYKcmyk(56.1%, 79.1%, 0%, 45.5%)
CIE-LABlab(22.77, 42.68, -55.24)
CIE-LCHlch(22.77, 69.81, 307.69°)
OKLaboklab(35.35% 0.0511 -0.159)
OKLCHoklch(35.35% 0.167 287.8)
XYZxyz(7.0227, 3.7345, 24.7719)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D8B #6B8B1D
analogous
#1D348B #3D1D8B #741D8B
triadic
#3D1D8B #8B3D1D #1D8B3D
tetradic
#3D1D8B #8B1D34 #6B8B1D #1D8B74
square
#3D1D8B #8B1D34 #6B8B1D #1D8B74
split-complementary
#3D1D8B #8B741D #348B1D
monochromatic
#110826 #271258 #3D1D8B #5328BE #7349D9

Accessibility & contrast

On white

12.02
#3D1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3D1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D8B
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D8B#FFFFFF#000000##FFFFFF
##3D1D8B1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1d8b;
/* rgb */ color: rgb(61, 29, 139);
/* oklch */ color: oklch(35.3% 0.167 287.8);
Tailwind
colors: {
  custom: {
    50: '#7c5dae',
    500: '#3d1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d8b;
$custom-light: #7c5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d8b",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 257.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35349,
    "c": 0.16697,
    "h": 287.8
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#3D1D8B
secondary
#9ABB49
accent
#E83FB7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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