#3F1D8A#3F1D8A

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

Color values

HEX#3F1D8A
RGBrgb(63, 29, 138)
HSLhsl(259, 65%, 33%)
HSVhsv(259, 79%, 54%)
CMYKcmyk(54.3%, 79%, 0%, 45.9%)
CIE-LABlab(22.90, 42.68, -54.41)
CIE-LCHlch(22.90, 69.15, 308.11°)
OKLaboklab(35.46% 0.0546 -0.1564)
OKLCHoklch(35.46% 0.166 289.2)
XYZxyz(7.0754, 3.7701, 24.3947)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D8A #688A1D
analogous
#1D318A #3F1D8A #761D8A
triadic
#3F1D8A #8A3F1D #1D8A3F
tetradic
#3F1D8A #8A1D31 #688A1D #1D8A76
square
#3F1D8A #8A1D31 #688A1D #1D8A76
split-complementary
#3F1D8A #8A761D #318A1D
monochromatic
#110825 #281257 #3F1D8A #5628BD #7649D9

Accessibility & contrast

On white

11.97
#3F1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1D8A
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D8A#FFFFFF#000000##FFFFFF
##3F1D8A1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#223C53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1d8a;
/* rgb */ color: rgb(63, 29, 138);
/* oklch */ color: oklch(35.5% 0.166 289.2);
Tailwind
colors: {
  custom: {
    50: '#7d5dad',
    500: '#3f1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d8a;
$custom-light: #7d5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d8a",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 258.716,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35457,
    "c": 0.16569,
    "h": 289.2
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#3F1D8A
secondary
#97BB48
accent
#E840B4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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