#3D1F96#3D1F96

#3D1F96 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.178 H 285.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#3D1F96
RGBrgb(61, 31, 150)
HSLhsl(255, 66%, 35%)
HSVhsv(255, 79%, 59%)
CMYKcmyk(59.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(24.24, 44.93, -59.65)
CIE-LCHlch(24.24, 74.68, 306.99°)
OKLaboklab(36.71% 0.0463 -0.1719)
OKLCHoklch(36.71% 0.178 285.1)
XYZxyz(7.9178, 4.1736, 29.2366)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F96 #78961F
analogous
#1F3C96 #3D1F96 #781F96
triadic
#3D1F96 #963D1F #1F963D
tetradic
#3D1F96 #961F3C #78961F #1F9678
square
#3D1F96 #961F3C #78961F #1F9678
split-complementary
#3D1F96 #96781F #3C961F
monochromatic
#140A31 #281563 #3D1F96 #5229C9 #7654DC

Accessibility & contrast

On white

11.45
#3D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3D1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F96
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F96#FFFFFF#000000##FFFFFF
##3D1F961.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#0A425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d1f96;
/* rgb */ color: rgb(61, 31, 150);
/* oklch */ color: oklch(36.7% 0.178 285.1);
Tailwind
colors: {
  custom: {
    50: '#7e5fb6',
    500: '#3d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f96;
$custom-light: #7e5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f96",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 255.126,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36709,
    "c": 0.178,
    "h": 285.1
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#3D1F96
secondary
#A3BF52
accent
#E93FBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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