#3F1C8E#3F1C8E

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

Color values

HEX#3F1C8E
RGBrgb(63, 28, 142)
HSLhsl(258, 67%, 33%)
HSVhsv(258, 80%, 56%)
CMYKcmyk(55.6%, 80.3%, 0%, 44.3%)
CIE-LABlab(23.13, 44.30, -56.51)
CIE-LCHlch(23.13, 71.80, 308.09°)
OKLaboklab(35.74% 0.0541 -0.1626)
OKLCHoklch(35.74% 0.171 288.4)
XYZxyz(7.3462, 3.8399, 25.9400)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C8E #6B8E1C
analogous
#1C328E #3F1C8E #781C8E
triadic
#3F1C8E #8E3F1C #1C8E3F
tetradic
#3F1C8E #8E1C32 #6B8E1C #1C8E78
square
#3F1C8E #8E1C32 #6B8E1C #1C8E78
split-complementary
#3F1C8E #8E781C #328E1C
monochromatic
#120828 #28125B #3F1C8E #5626C1 #7649DB

Accessibility & contrast

On white

11.88
#3F1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1C8E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C8E#FFFFFF#000000##FFFFFF
##3F1C8E1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#1E3D55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1c8e;
/* rgb */ color: rgb(63, 28, 142);
/* oklch */ color: oklch(35.7% 0.171 288.4);
Tailwind
colors: {
  custom: {
    50: '#7e5db0',
    500: '#3f1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c8e;
$custom-light: #7e5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c8e",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 258.421,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35745,
    "c": 0.17134,
    "h": 288.4
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#3F1C8E
secondary
#99BD49
accent
#EA3EB5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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