#3F1E7D#3F1E7D

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

Color values

HEX#3F1E7D
RGBrgb(63, 30, 125)
HSLhsl(261, 61%, 30%)
HSVhsv(261, 76%, 49%)
CMYKcmyk(49.6%, 76%, 0%, 51%)
CIE-LABlab(21.82, 38.42, -47.99)
CIE-LCHlch(21.82, 61.47, 308.68°)
OKLaboklab(34.32% 0.0573 -0.1376)
OKLCHoklch(34.32% 0.149 292.6)
XYZxyz(6.2148, 3.4658, 19.7396)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E7D #5C7D1E
analogous
#1E2D7D #3F1E7D #6E1E7D
triadic
#3F1E7D #7D3F1E #1E7D3F
tetradic
#3F1E7D #7D1E2D #5C7D1E #1E7D6E
square
#3F1E7D #7D1E2D #5C7D1E #1E7D6E
split-complementary
#3F1E7D #7D6E1E #2D7D1E
monochromatic
#0D061A #26124C #3F1E7D #582AAE #7543D2

Accessibility & contrast

On white

12.40
#3F1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1E7D
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E7D#FFFFFF#000000##FFFFFF
##3F1E7D1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#2C374C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1e7d;
/* rgb */ color: rgb(63, 30, 125);
/* oklch */ color: oklch(34.3% 0.149 292.6);
Tailwind
colors: {
  custom: {
    50: '#7b5da4',
    500: '#3f1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e7d;
$custom-light: #7b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e7d",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 260.842,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34319,
    "c": 0.1491,
    "h": 292.6
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#3F1E7D
secondary
#8CB046
accent
#E443AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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