#3F1C8D#3F1C8D

#3F1C8D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.170 H 288.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#3F1C8D
RGBrgb(63, 28, 141)
HSLhsl(259, 67%, 33%)
HSVhsv(259, 80%, 55%)
CMYKcmyk(55.3%, 80.1%, 0%, 44.7%)
CIE-LABlab(23.03, 44.01, -56.06)
CIE-LCHlch(23.03, 71.27, 308.14°)
OKLaboklab(35.64% 0.0544 -0.1613)
OKLCHoklch(35.64% 0.17 288.6)
XYZxyz(7.2715, 3.8100, 25.5464)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C8D #6A8D1C
analogous
#1C318D #3F1C8D #771C8D
triadic
#3F1C8D #8D3F1C #1C8D3F
tetradic
#3F1C8D #8D1C31 #6A8D1C #1C8D77
square
#3F1C8D #8D1C31 #6A8D1C #1C8D77
split-complementary
#3F1C8D #8D771C #318D1C
monochromatic
#110827 #28125A #3F1C8D #5626C0 #7649DB

Accessibility & contrast

On white

11.92
#3F1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3F1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C8D
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C8D#FFFFFF#000000##FFFFFF
##3F1C8D1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#1F3D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1c8d;
/* rgb */ color: rgb(63, 28, 141);
/* oklch */ color: oklch(35.6% 0.170 288.6);
Tailwind
colors: {
  custom: {
    50: '#7e5daf',
    500: '#3f1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c8d;
$custom-light: #7e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c8d",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 258.584,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.17018,
    "h": 288.6
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#3F1C8D
secondary
#99BD48
accent
#EA3EB5
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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