#3D1F91#3D1F91

#3D1F91 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.172 H 286.1°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#3D1F91
RGBrgb(61, 31, 145)
HSLhsl(256, 65%, 35%)
HSVhsv(256, 79%, 57%)
CMYKcmyk(57.9%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.72, 43.46, -57.41)
CIE-LCHlch(23.72, 72.01, 307.13°)
OKLaboklab(36.2% 0.0478 -0.1653)
OKLCHoklch(36.2% 0.172 286.1)
XYZxyz(7.5238, 4.0160, 27.1613)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F91 #73911F
analogous
#1F3A91 #3D1F91 #761F91
triadic
#3D1F91 #913D1F #1F913D
tetradic
#3D1F91 #911F3A #73911F #1F9176
square
#3D1F91 #911F3A #73911F #1F9176
split-complementary
#3D1F91 #91761F #3A911F
monochromatic
#13092C #28145F #3D1F91 #522AC3 #7551DA

Accessibility & contrast

On white

11.65
#3D1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F91
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F91#FFFFFF#000000##FFFFFF
##3D1F911.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#144057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1f91;
/* rgb */ color: rgb(61, 31, 145);
/* oklch */ color: oklch(36.2% 0.172 286.1);
Tailwind
colors: {
  custom: {
    50: '#7d5fb2',
    500: '#3d1f91',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f91;
$custom-light: #7d5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f91",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 255.789,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36197,
    "c": 0.17209,
    "h": 286.1
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#3D1F91
secondary
#A0BD4F
accent
#E840BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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