#3D1F7E#3D1F7E

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

Color values

HEX#3D1F7E
RGBrgb(61, 31, 126)
HSLhsl(259, 61%, 31%)
HSVhsv(259, 75%, 49%)
CMYKcmyk(51.6%, 75.4%, 0%, 50.6%)
CIE-LABlab(21.87, 37.84, -48.56)
CIE-LCHlch(21.87, 61.56, 307.93°)
OKLaboklab(34.33% 0.053 -0.1394)
OKLCHoklch(34.33% 0.149 290.8)
XYZxyz(6.1793, 3.4782, 20.0804)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F7E #607E1F
analogous
#1F307E #3D1F7E #6C1F7E
triadic
#3D1F7E #7E3D1F #1F7E3D
tetradic
#3D1F7E #7E1F30 #607E1F #1F7E6C
square
#3D1F7E #7E1F30 #607E1F #1F7E6C
split-complementary
#3D1F7E #7E6C1F #307E1F
monochromatic
#0D071C #25134D #3D1F7E #552BAF #7246D1

Accessibility & contrast

On white

12.38
#3D1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3D1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F7E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F7E#FFFFFF#000000##FFFFFF
##3D1F7E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#27384C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1f7e;
/* rgb */ color: rgb(61, 31, 126);
/* oklch */ color: oklch(34.3% 0.149 290.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ea4',
    500: '#3d1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f7e;
$custom-light: #7a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f7e",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 258.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34325,
    "c": 0.14913,
    "h": 290.8
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#3D1F7E
secondary
#90B148
accent
#E444B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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