#3D1F97#3D1F97

#3D1F97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.179 H 284.9°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#3D1F97
RGBrgb(61, 31, 151)
HSLhsl(255, 66%, 36%)
HSVhsv(255, 79%, 59%)
CMYKcmyk(59.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(24.34, 45.23, -60.10)
CIE-LCHlch(24.34, 75.22, 306.96°)
OKLaboklab(36.81% 0.046 -0.1732)
OKLCHoklch(36.81% 0.179 284.9)
XYZxyz(7.9987, 4.2059, 29.6625)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F97 #79971F
analogous
#1F3D97 #3D1F97 #791F97
triadic
#3D1F97 #973D1F #1F973D
tetradic
#3D1F97 #971F3D #79971F #1F9779
square
#3D1F97 #971F3D #79971F #1F9779
split-complementary
#3D1F97 #97791F #3D971F
monochromatic
#140A31 #281564 #3D1F97 #5229CA #7654DC

Accessibility & contrast

On white

11.41
#3D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F97
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F97#FFFFFF#000000##FFFFFF
##3D1F971.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#07425B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d1f97;
/* rgb */ color: rgb(61, 31, 151);
/* oklch */ color: oklch(36.8% 0.179 284.9);
Tailwind
colors: {
  custom: {
    50: '#7e5fb7',
    500: '#3d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f97;
$custom-light: #7e5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f97",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 255,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36813,
    "c": 0.17918,
    "h": 284.9
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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