#3F1E7A#3F1E7A

#3F1E7A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.145 H 293.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#3F1E7A
RGBrgb(63, 30, 122)
HSLhsl(262, 61%, 30%)
HSVhsv(262, 75%, 48%)
CMYKcmyk(48.4%, 75.4%, 0%, 52.2%)
CIE-LABlab(21.54, 37.55, -46.53)
CIE-LCHlch(21.54, 59.79, 308.90°)
OKLaboklab(34.04% 0.0581 -0.1334)
OKLCHoklch(34.04% 0.145 293.5)
XYZxyz(6.0261, 3.3903, 18.7455)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E7A #597A1E
analogous
#1E2B7A #3F1E7A #6D1E7A
triadic
#3F1E7A #7A3F1E #1E7A3F
tetradic
#3F1E7A #7A1E2B #597A1E #1E7A6D
square
#3F1E7A #7A1E2B #597A1E #1E7A6D
split-complementary
#3F1E7A #7A6D1E #2B7A1E
monochromatic
#0D0619 #261249 #3F1E7A #582AAB #7542D0

Accessibility & contrast

On white

12.51
#3F1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F1E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E7A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E7A#FFFFFF#000000##FFFFFF
##3F1E7A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#2D364A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1e7a;
/* rgb */ color: rgb(63, 30, 122);
/* oklch */ color: oklch(34.0% 0.145 293.5);
Tailwind
colors: {
  custom: {
    50: '#7a5da1',
    500: '#3f1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e7a;
$custom-light: #7a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e7a",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 261.522,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34038,
    "c": 0.14546,
    "h": 293.5
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#3F1E7A
secondary
#88AE46
accent
#E444AA
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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