#3D1F9A#3D1F9A

#3D1F9A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.183 H 284.3°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#3D1F9A
RGBrgb(61, 31, 154)
HSLhsl(255, 66%, 36%)
HSVhsv(255, 80%, 60%)
CMYKcmyk(60.4%, 79.9%, 0%, 39.6%)
CIE-LABlab(24.65, 46.11, -61.43)
CIE-LCHlch(24.65, 76.81, 306.89°)
OKLaboklab(37.12% 0.0451 -0.177)
OKLCHoklch(37.12% 0.183 284.3)
XYZxyz(8.2454, 4.3046, 30.9620)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F9A #7C9A1F
analogous
#1F3F9A #3D1F9A #7B1F9A
triadic
#3D1F9A #9A3D1F #1F9A3D
tetradic
#3D1F9A #9A1F3F #7C9A1F #1F9A7B
square
#3D1F9A #9A1F3F #7C9A1F #1F9A7B
split-complementary
#3D1F9A #9A7B1F #3F9A1F
monochromatic
#150A34 #291567 #3D1F9A #5129CD #7756DD

Accessibility & contrast

On white

11.28
#3D1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3D1F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F9A
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F9A#FFFFFF#000000##FFFFFF
##3D1F9A1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d1f9a;
/* rgb */ color: rgb(61, 31, 154);
/* oklch */ color: oklch(37.1% 0.183 284.3);
Tailwind
colors: {
  custom: {
    50: '#7f5fb9',
    500: '#3d1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f9a;
$custom-light: #7f5fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f9a",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 254.634,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37124,
    "c": 0.18269,
    "h": 284.3
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#3D1F9A
secondary
#A6C154
accent
#E93EC0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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