#3F1D6D#3F1D6D

#3F1D6D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.131 H 298.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#3F1D6D
RGBrgb(63, 29, 109)
HSLhsl(266, 58%, 27%)
HSVhsv(266, 73%, 43%)
CMYKcmyk(42.2%, 73.4%, 0%, 57.3%)
CIE-LABlab(20.20, 34.37, -40.36)
CIE-LCHlch(20.20, 53.01, 310.41°)
OKLaboklab(32.73% 0.0619 -0.1152)
OKLCHoklch(32.73% 0.131 298.2)
XYZxyz(5.2489, 3.0395, 14.7752)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D6D #4B6D1D
analogous
#1D236D #3F1D6D #671D6D
triadic
#3F1D6D #6D3F1D #1D6D3F
tetradic
#3F1D6D #6D1D23 #4B6D1D #1D6D67
square
#3F1D6D #6D1D23 #4B6D1D #1D6D67
split-complementary
#3F1D6D #6D671D #236D1D
monochromatic
#0E0618 #23103D #3F1D6D #5B2A9D #773ACB

Accessibility & contrast

On white

13.06
#3F1D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F1D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1D6D
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D6D#FFFFFF#000000##FFFFFF
##3F1D6D1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#343042
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1d6d;
/* rgb */ color: rgb(63, 29, 109);
/* oklch */ color: oklch(32.7% 0.131 298.2);
Tailwind
colors: {
  custom: {
    50: '#795c97',
    500: '#3f1d6d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d6d;
$custom-light: #795c97;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d6d",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 265.5,
    "s": 57.971,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32728,
    "c": 0.1308,
    "h": 298.2
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

primary
#3F1D6D
secondary
#7AA244
accent
#E1479F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F1D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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