#3D1A8E#3D1A8E

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

Color values

HEX#3D1A8E
RGBrgb(61, 26, 142)
HSLhsl(258, 69%, 33%)
HSVhsv(258, 82%, 56%)
CMYKcmyk(57%, 81.7%, 0%, 44.3%)
CIE-LABlab(22.60, 44.95, -57.41)
CIE-LCHlch(22.60, 72.91, 308.06°)
OKLaboklab(35.32% 0.0522 -0.1652)
OKLCHoklch(35.32% 0.173 287.5)
XYZxyz(7.1749, 3.6835, 25.9189)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A8E #6B8E1A
analogous
#1A318E #3D1A8E #771A8E
triadic
#3D1A8E #8E3D1A #1A8E3D
tetradic
#3D1A8E #8E1A31 #6B8E1A #1A8E77
square
#3D1A8E #8E1A31 #6B8E1A #1A8E77
split-complementary
#3D1A8E #8E771A #318E1A
monochromatic
#110727 #27115A #3D1A8E #5323C2 #7345DD

Accessibility & contrast

On white

12.09
#3D1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3D1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A8E
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A8E#FFFFFF#000000##FFFFFF
##3D1A8E1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#193C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1a8e;
/* rgb */ color: rgb(61, 26, 142);
/* oklch */ color: oklch(35.3% 0.173 287.5);
Tailwind
colors: {
  custom: {
    50: '#7d5cb0',
    500: '#3d1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a8e;
$custom-light: #7d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a8e",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 258.103,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35319,
    "c": 0.17331,
    "h": 287.5
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#3D1A8E
secondary
#9ABE45
accent
#EC3CB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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