#3D1A7E#3D1A7E

#3D1A7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.155 H 291.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3D1A7E
RGBrgb(61, 26, 126)
HSLhsl(261, 66%, 30%)
HSVhsv(261, 79%, 49%)
CMYKcmyk(51.6%, 79.4%, 0%, 50.6%)
CIE-LABlab(20.97, 40.38, -50.03)
CIE-LCHlch(20.97, 64.29, 308.91°)
OKLaboklab(33.7% 0.0574 -0.1437)
OKLCHoklch(33.7% 0.155 291.8)
XYZxyz(6.0587, 3.2370, 20.0402)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A7E #5B7E1A
analogous
#1A297E #3D1A7E #6F1A7E
triadic
#3D1A7E #7E3D1A #1A7E3D
tetradic
#3D1A7E #7E1A29 #5B7E1A #1A7E6F
square
#3D1A7E #7E1A29 #5B7E1A #1A7E6F
split-complementary
#3D1A7E #7E6F1A #297E1A
monochromatic
#0C0519 #24104B #3D1A7E #5624B1 #723CD7

Accessibility & contrast

On white

12.75
#3D1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A7E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A7E#FFFFFF#000000##FFFFFF
##3D1A7E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#27364B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1a7e;
/* rgb */ color: rgb(61, 26, 126);
/* oklch */ color: oklch(33.7% 0.155 291.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ba4',
    500: '#3d1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a7e;
$custom-light: #7a5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a7e",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 261,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33695,
    "c": 0.1547,
    "h": 291.8
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#3D1A7E
secondary
#8BB242
accent
#E93FAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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