#3D1E96#3D1E96

#3D1E96 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.179 H 285.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3D1E96
RGBrgb(61, 30, 150)
HSLhsl(256, 67%, 35%)
HSVhsv(256, 80%, 59%)
CMYKcmyk(59.3%, 80%, 0%, 41.2%)
CIE-LABlab(24.07, 45.41, -59.93)
CIE-LCHlch(24.07, 75.19, 307.15°)
OKLaboklab(36.59% 0.047 -0.1727)
OKLCHoklch(36.59% 0.179 285.2)
XYZxyz(7.8921, 4.1222, 29.2280)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E96 #77961E
analogous
#1E3B96 #3D1E96 #791E96
triadic
#3D1E96 #963D1E #1E963D
tetradic
#3D1E96 #961E3B #77961E #1E9679
square
#3D1E96 #961E3B #77961E #1E9679
split-complementary
#3D1E96 #96791E #3B961E
monochromatic
#140A30 #281463 #3D1E96 #5228C9 #7652DC

Accessibility & contrast

On white

11.51
#3D1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3D1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E96
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E96#FFFFFF#000000##FFFFFF
##3D1E961.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#0A415A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d1e96;
/* rgb */ color: rgb(61, 30, 150);
/* oklch */ color: oklch(36.6% 0.179 285.2);
Tailwind
colors: {
  custom: {
    50: '#7e5fb6',
    500: '#3d1e96',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e96;
$custom-light: #7e5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e96",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 255.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36594,
    "c": 0.17894,
    "h": 285.2
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#3D1E96
secondary
#A3BF50
accent
#EA3EBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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