#3F1E8B#3F1E8B

#3F1E8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.166 H 288.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#3F1E8B
RGBrgb(63, 30, 139)
HSLhsl(258, 64%, 33%)
HSVhsv(258, 78%, 55%)
CMYKcmyk(54.7%, 78.4%, 0%, 45.5%)
CIE-LABlab(23.17, 42.48, -54.59)
CIE-LCHlch(23.17, 69.17, 307.89°)
OKLaboklab(35.68% 0.0535 -0.157)
OKLCHoklch(35.68% 0.166 288.8)
XYZxyz(7.1730, 3.8490, 24.7861)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E8B #6A8B1E
analogous
#1E338B #3F1E8B #751E8B
triadic
#3F1E8B #8B3F1E #1E8B3F
tetradic
#3F1E8B #8B1E33 #6A8B1E #1E8B75
square
#3F1E8B #8B1E33 #6A8B1E #1E8B75
split-complementary
#3F1E8B #8B751E #338B1E
monochromatic
#110826 #281359 #3F1E8B #5629BD #764BD8

Accessibility & contrast

On white

11.87
#3F1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3F1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E8B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E8B#FFFFFF#000000##FFFFFF
##3F1E8B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#213D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1e8b;
/* rgb */ color: rgb(63, 30, 139);
/* oklch */ color: oklch(35.7% 0.166 288.8);
Tailwind
colors: {
  custom: {
    50: '#7d5eae',
    500: '#3f1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e8b;
$custom-light: #7d5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e8b",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 258.165,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35676,
    "c": 0.16585,
    "h": 288.8
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#3F1E8B
secondary
#99BB4A
accent
#E740B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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