#3F1E7C#3F1E7C

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

Color values

HEX#3F1E7C
RGBrgb(63, 30, 124)
HSLhsl(261, 61%, 30%)
HSVhsv(261, 76%, 49%)
CMYKcmyk(49.2%, 75.8%, 0%, 51.4%)
CIE-LABlab(21.73, 38.13, -47.50)
CIE-LCHlch(21.73, 60.91, 308.75°)
OKLaboklab(34.23% 0.0576 -0.1362)
OKLCHoklch(34.23% 0.148 292.9)
XYZxyz(6.1513, 3.4403, 19.4048)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E7C #5B7C1E
analogous
#1E2C7C #3F1E7C #6E1E7C
triadic
#3F1E7C #7C3F1E #1E7C3F
tetradic
#3F1E7C #7C1E2C #5B7C1E #1E7C6E
square
#3F1E7C #7C1E2C #5B7C1E #1E7C6E
split-complementary
#3F1E7C #7C6E1E #2C7C1E
monochromatic
#0D0619 #26124B #3F1E7C #582AAD #7543D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F1E7C#FFFFFF#000000##FFFFFF
##3F1E7C1.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)
#00357F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#2C374B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1e7c;
/* rgb */ color: rgb(63, 30, 124);
/* oklch */ color: oklch(34.2% 0.148 292.9);
Tailwind
colors: {
  custom: {
    50: '#7b5da3',
    500: '#3f1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e7c;
$custom-light: #7b5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e7c",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 261.064,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.14789,
    "h": 292.9
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#3F1E7C
secondary
#8BAF46
accent
#E444AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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