#3D1F9F#3D1F9F

#3D1F9F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.189 H 283.3°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#3D1F9F
RGBrgb(61, 31, 159)
HSLhsl(254, 67%, 37%)
HSVhsv(254, 81%, 62%)
CMYKcmyk(61.6%, 80.5%, 0%, 37.6%)
CIE-LABlab(25.18, 47.57, -63.61)
CIE-LCHlch(25.18, 79.43, 306.79°)
OKLaboklab(37.65% 0.0435 -0.1834)
OKLCHoklch(37.65% 0.189 283.3)
XYZxyz(8.6705, 4.4747, 33.2010)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F9F #819F1F
analogous
#1F419F #3D1F9F #7D1F9F
triadic
#3D1F9F #9F3D1F #1F9F3D
tetradic
#3D1F9F #9F1F41 #819F1F #1F9F7D
square
#3D1F9F #9F1F41 #819F1F #1F9F7D
split-complementary
#3D1F9F #9F7D1F #419F1F
monochromatic
#160B39 #29156C #3D1F9F #5129D2 #795ADF

Accessibility & contrast

On white

11.08
#3D1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3D1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F9F
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F9F#FFFFFF#000000##FFFFFF
##3D1F9F1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d1f9f;
/* rgb */ color: rgb(61, 31, 159);
/* oklch */ color: oklch(37.6% 0.189 283.3);
Tailwind
colors: {
  custom: {
    50: '#8060bd',
    500: '#3d1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f9f;
$custom-light: #8060bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f9f",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 254.063,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37649,
    "c": 0.18851,
    "h": 283.3
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#3D1F9F
secondary
#A9C357
accent
#EA3EC2
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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