#3D1A7B#3D1A7B

#3D1A7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.151 H 292.7°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#3D1A7B
RGBrgb(61, 26, 123)
HSLhsl(262, 65%, 29%)
HSVhsv(262, 79%, 48%)
CMYKcmyk(50.4%, 78.9%, 0%, 51.8%)
CIE-LABlab(20.68, 39.53, -48.60)
CIE-LCHlch(20.68, 62.64, 309.12°)
OKLaboklab(33.4% 0.0583 -0.1395)
OKLCHoklch(33.4% 0.151 292.7)
XYZxyz(5.8680, 3.1607, 19.0360)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A7B #587B1A
analogous
#1A287B #3D1A7B #6E1A7B
triadic
#3D1A7B #7B3D1A #1A7B3D
tetradic
#3D1A7B #7B1A28 #587B1A #1A7B6E
square
#3D1A7B #7B1A28 #587B1A #1A7B6E
split-complementary
#3D1A7B #7B6E1A #287B1A
monochromatic
#0D0519 #240F48 #3D1A7B #5625AE #723AD5

Accessibility & contrast

On white

12.87
#3D1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A7B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A7B#FFFFFF#000000##FFFFFF
##3D1A7B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#29354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1a7b;
/* rgb */ color: rgb(61, 26, 123);
/* oklch */ color: oklch(33.4% 0.151 292.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ba2',
    500: '#3d1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a7b;
$custom-light: #7a5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a7b",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 261.649,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33401,
    "c": 0.15115,
    "h": 292.7
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#3D1A7B
secondary
#88AF42
accent
#E840AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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