#3F1A9E#3F1A9E

#3F1A9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.191 H 285.1°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3F1A9E
RGBrgb(63, 26, 158)
HSLhsl(257, 72%, 36%)
HSVhsv(257, 84%, 62%)
CMYKcmyk(60.1%, 83.5%, 0%, 38%)
CIE-LABlab(24.52, 49.70, -64.08)
CIE-LCHlch(24.52, 81.09, 307.80°)
OKLaboklab(37.21% 0.0499 -0.1847)
OKLCHoklch(37.21% 0.191 285.1)
XYZxyz(8.5890, 4.2636, 32.7115)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A9E #799E1A
analogous
#1A379E #3F1A9E #811A9E
triadic
#3F1A9E #9E3F1A #1A9E3F
tetradic
#3F1A9E #9E1A37 #799E1A #1A9E81
square
#3F1A9E #9E1A37 #799E1A #1A9E81
split-complementary
#3F1A9E #9E811A #379E1A
monochromatic
#150935 #2A1169 #3F1A9E #5423D3 #7950E2

Accessibility & contrast

On white

11.33
#3F1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3F1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A9E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A9E#FFFFFF#000000##FFFFFF
##3F1A9E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#02435E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f1a9e;
/* rgb */ color: rgb(63, 26, 158);
/* oklch */ color: oklch(37.2% 0.191 285.1);
Tailwind
colors: {
  custom: {
    50: '#815dbc',
    500: '#3f1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a9e;
$custom-light: #815dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a9e",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 256.818,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37211,
    "c": 0.19127,
    "h": 285.1
  },
  "luminance": 0.04264
}

Semantic roles & 50–950 ramp

primary
#3F1A9E
secondary
#A4C54F
accent
#EE39BC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3F1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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