#3F1D7E#3F1D7E

#3F1D7E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.151 H 292.5°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#3F1D7E
RGBrgb(63, 29, 126)
HSLhsl(261, 63%, 30%)
HSVhsv(261, 77%, 49%)
CMYKcmyk(50%, 77%, 0%, 50.6%)
CIE-LABlab(21.73, 39.22, -48.77)
CIE-LCHlch(21.73, 62.58, 308.81°)
OKLaboklab(34.29% 0.058 -0.1399)
OKLCHoklch(34.29% 0.151 292.5)
XYZxyz(6.2541, 3.4416, 20.0694)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D7E #5C7E1D
analogous
#1D2B7E #3F1D7E #6F1D7E
triadic
#3F1D7E #7E3F1D #1D7E3F
tetradic
#3F1D7E #7E1D2B #5C7E1D #1D7E6F
square
#3F1D7E #7E1D2B #5C7E1D #1D7E6F
split-complementary
#3F1D7E #7E6F1D #2B7E1D
monochromatic
#0D061B #26124C #3F1D7E #5828B0 #7542D3

Accessibility & contrast

On white

12.44
#3F1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1D7E
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D7E#FFFFFF#000000##FFFFFF
##3F1D7E1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#2B374C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1d7e;
/* rgb */ color: rgb(63, 29, 126);
/* oklch */ color: oklch(34.3% 0.151 292.5);
Tailwind
colors: {
  custom: {
    50: '#7b5da4',
    500: '#3f1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d7e;
$custom-light: #7b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d7e",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 261.031,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34286,
    "c": 0.15146,
    "h": 292.5
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#3F1D7E
secondary
#8CB145
accent
#E642AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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