#3D1E7F#3D1E7F

#3D1E7F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.152 H 290.7°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#3D1E7F
RGBrgb(61, 30, 127)
HSLhsl(259, 62%, 31%)
HSVhsv(259, 76%, 50%)
CMYKcmyk(52%, 76.4%, 0%, 50.2%)
CIE-LABlab(21.77, 38.66, -49.34)
CIE-LCHlch(21.77, 62.68, 308.08°)
OKLaboklab(34.29% 0.0537 -0.1417)
OKLCHoklch(34.29% 0.152 290.7)
XYZxyz(6.2184, 3.4527, 20.4133)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E7F #607F1E
analogous
#1E307F #3D1E7F #6D1E7F
triadic
#3D1E7F #7F3D1E #1E7F3D
tetradic
#3D1E7F #7F1E30 #607F1E #1E7F6D
square
#3D1E7F #7F1E30 #607F1E #1E7F6D
split-complementary
#3D1E7F #7F6D1E #307F1E
monochromatic
#0D071C #25124D #3D1E7F #552AB1 #7244D3

Accessibility & contrast

On white

12.42
#3D1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3D1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E7F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E7F#FFFFFF#000000##FFFFFF
##3D1E7F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#26384D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1e7f;
/* rgb */ color: rgb(61, 30, 127);
/* oklch */ color: oklch(34.3% 0.152 290.7);
Tailwind
colors: {
  custom: {
    50: '#7a5da5',
    500: '#3d1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e7f;
$custom-light: #7a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e7f",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 259.175,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.15151,
    "h": 290.7
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#3D1E7F
secondary
#90B247
accent
#E543B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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