#3F1E7E#3F1E7E

#3F1E7E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.150 H 292.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#3F1E7E
RGBrgb(63, 30, 126)
HSLhsl(261, 62%, 31%)
HSVhsv(261, 76%, 49%)
CMYKcmyk(50%, 76.2%, 0%, 50.6%)
CIE-LABlab(21.91, 38.71, -48.47)
CIE-LCHlch(21.91, 62.03, 308.61°)
OKLaboklab(34.41% 0.0571 -0.139)
OKLCHoklch(34.41% 0.15 292.3)
XYZxyz(6.2790, 3.4914, 20.0777)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E7E #5D7E1E
analogous
#1E2D7E #3F1E7E #6F1E7E
triadic
#3F1E7E #7E3F1E #1E7E3F
tetradic
#3F1E7E #7E1E2D #5D7E1E #1E7E6F
square
#3F1E7E #7E1E2D #5D7E1E #1E7E6F
split-complementary
#3F1E7E #7E6F1E #2D7E1E
monochromatic
#0E061B #26124D #3F1E7E #582AAF #7544D2

Accessibility & contrast

On white

12.36
#3F1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E7E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E7E#FFFFFF#000000##FFFFFF
##3F1E7E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#2B384C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f1e7e;
/* rgb */ color: rgb(63, 30, 126);
/* oklch */ color: oklch(34.4% 0.150 292.3);
Tailwind
colors: {
  custom: {
    50: '#7b5da4',
    500: '#3f1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e7e;
$custom-light: #7b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e7e",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 260.625,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34413,
    "c": 0.15031,
    "h": 292.3
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#3F1E7E
secondary
#8DB147
accent
#E543AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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