#3D1A96#3D1A96

#3D1A96 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.182 H 285.7°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#3D1A96
RGBrgb(61, 26, 150)
HSLhsl(257, 70%, 35%)
HSVhsv(257, 83%, 59%)
CMYKcmyk(59.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(23.45, 47.23, -60.96)
CIE-LCHlch(23.45, 77.11, 307.77°)
OKLaboklab(36.16% 0.0495 -0.1756)
OKLCHoklch(36.16% 0.182 285.7)
XYZxyz(7.7972, 3.9324, 29.1964)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A96 #73961A
analogous
#1A3596 #3D1A96 #7B1A96
triadic
#3D1A96 #963D1A #1A963D
tetradic
#3D1A96 #961A35 #73961A #1A967B
square
#3D1A96 #961A35 #73961A #1A967B
split-complementary
#3D1A96 #967B1A #35961A
monochromatic
#13082E #281162 #3D1A96 #5223CA #754BE0

Accessibility & contrast

On white

11.75
#3D1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3D1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A96
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A96#FFFFFF#000000##FFFFFF
##3D1A961.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#0B4059
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1a96;
/* rgb */ color: rgb(61, 26, 150);
/* oklch */ color: oklch(36.2% 0.182 285.7);
Tailwind
colors: {
  custom: {
    50: '#7e5cb6',
    500: '#3d1a96',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a96;
$custom-light: #7e5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a96",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 256.935,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36161,
    "c": 0.18245,
    "h": 285.7
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#3D1A96
secondary
#A0C24A
accent
#ED3BBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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