#3D1A7C#3D1A7C

#3D1A7C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.152 H 292.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#3D1A7C
RGBrgb(61, 26, 124)
HSLhsl(261, 65%, 29%)
HSVhsv(261, 79%, 49%)
CMYKcmyk(50.8%, 79%, 0%, 51.4%)
CIE-LABlab(20.77, 39.81, -49.08)
CIE-LCHlch(20.77, 63.19, 309.05°)
OKLaboklab(33.5% 0.058 -0.1409)
OKLCHoklch(33.5% 0.152 292.4)
XYZxyz(5.9309, 3.1859, 19.3673)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A7C #597C1A
analogous
#1A287C #3D1A7C #6E1A7C
triadic
#3D1A7C #7C3D1A #1A7C3D
tetradic
#3D1A7C #7C1A28 #597C1A #1A7C6E
square
#3D1A7C #7C1A28 #597C1A #1A7C6E
split-complementary
#3D1A7C #7C6E1A #287C1A
monochromatic
#0C0519 #240F49 #3D1A7C #5625AF #723BD6

Accessibility & contrast

On white

12.83
#3D1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A7C
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A7C#FFFFFF#000000##FFFFFF
##3D1A7C1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1a7c;
/* rgb */ color: rgb(61, 26, 124);
/* oklch */ color: oklch(33.5% 0.152 292.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ba3',
    500: '#3d1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a7c;
$custom-light: #7a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a7c",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 261.429,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.15233,
    "h": 292.4
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#3D1A7C
secondary
#89B042
accent
#E840AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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