#3F1C7C#3F1C7C

#3F1C7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.150 H 293.3°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3F1C7C
RGBrgb(63, 28, 124)
HSLhsl(262, 63%, 30%)
HSVhsv(262, 77%, 49%)
CMYKcmyk(49.2%, 77.4%, 0%, 51.4%)
CIE-LABlab(21.37, 39.15, -48.10)
CIE-LCHlch(21.37, 62.02, 309.15°)
OKLaboklab(33.97% 0.0594 -0.1379)
OKLCHoklch(33.97% 0.15 293.3)
XYZxyz(6.1022, 3.3423, 19.3885)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C7C #597C1C
analogous
#1C297C #3F1C7C #6F1C7C
triadic
#3F1C7C #7C3F1C #1C7C3F
tetradic
#3F1C7C #7C1C29 #597C1C #1C7C6F
square
#3F1C7C #7C1C29 #597C1C #1C7C6F
split-complementary
#3F1C7C #7C6F1C #297C1C
monochromatic
#0D0619 #26114A #3F1C7C #5827AE #753FD4

Accessibility & contrast

On white

12.59
#3F1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F1C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C7C
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C7C#FFFFFF#000000##FFFFFF
##3F1C7C1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#2C364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1c7c;
/* rgb */ color: rgb(63, 28, 124);
/* oklch */ color: oklch(34.0% 0.150 293.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ca3',
    500: '#3f1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c7c;
$custom-light: #7b5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c7c",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 261.875,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3397,
    "c": 0.1502,
    "h": 293.3
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#3F1C7C
secondary
#88B044
accent
#E642AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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