#3D1A9E#3D1A9E

#3D1A9E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.192 H 284.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#3D1A9E
RGBrgb(61, 26, 158)
HSLhsl(256, 72%, 36%)
HSVhsv(256, 84%, 62%)
CMYKcmyk(61.4%, 83.5%, 0%, 38%)
CIE-LABlab(24.32, 49.49, -64.43)
CIE-LCHlch(24.32, 81.24, 307.53°)
OKLaboklab(37.02% 0.0467 -0.1857)
OKLCHoklch(37.02% 0.192 284.1)
XYZxyz(8.4635, 4.1989, 32.7056)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A9E #7B9E1A
analogous
#1A399E #3D1A9E #7F1A9E
triadic
#3D1A9E #9E3D1A #1A9E3D
tetradic
#3D1A9E #9E1A39 #7B9E1A #1A9E7F
square
#3D1A9E #9E1A39 #7B9E1A #1A9E7F
split-complementary
#3D1A9E #9E7F1A #399E1A
monochromatic
#140935 #291169 #3D1A9E #5123D3 #7750E2

Accessibility & contrast

On white

11.41
#3D1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A9E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A9E#FFFFFF#000000##FFFFFF
##3D1A9E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d1a9e;
/* rgb */ color: rgb(61, 26, 158);
/* oklch */ color: oklch(37.0% 0.192 284.1);
Tailwind
colors: {
  custom: {
    50: '#805dbc',
    500: '#3d1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a9e;
$custom-light: #805dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a9e",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 255.909,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3702,
    "c": 0.1915,
    "h": 284.1
  },
  "luminance": 0.042
}

Semantic roles & 50–950 ramp

primary
#3D1A9E
secondary
#A6C54F
accent
#EE39BE
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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