#3D1D96#3D1D96

#3D1D96 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.180 H 285.4°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#3D1D96
RGBrgb(61, 29, 150)
HSLhsl(256, 68%, 35%)
HSVhsv(256, 81%, 59%)
CMYKcmyk(59.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(23.91, 45.88, -60.19)
CIE-LCHlch(23.91, 75.69, 307.31°)
OKLaboklab(36.48% 0.0476 -0.1734)
OKLCHoklch(36.48% 0.18 285.4)
XYZxyz(7.8672, 4.0724, 29.2197)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D96 #76961D
analogous
#1D3996 #3D1D96 #7A1D96
triadic
#3D1D96 #963D1D #1D963D
tetradic
#3D1D96 #961D39 #76961D #1D967A
square
#3D1D96 #961D39 #76961D #1D967A
split-complementary
#3D1D96 #967A1D #39961D
monochromatic
#13092F #281363 #3D1D96 #5227C9 #7550DD

Accessibility & contrast

On white

11.57
#3D1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3D1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D96
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D96#FFFFFF#000000##FFFFFF
##3D1D961.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1d96;
/* rgb */ color: rgb(61, 29, 150);
/* oklch */ color: oklch(36.5% 0.180 285.4);
Tailwind
colors: {
  custom: {
    50: '#7e5eb6',
    500: '#3d1d96',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d96;
$custom-light: #7e5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d96",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 255.868,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36481,
    "c": 0.17985,
    "h": 285.4
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#3D1D96
secondary
#A2C04F
accent
#EA3DBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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