#3F1A7A#3F1A7A

#3F1A7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.150 H 294.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#3F1A7A
RGBrgb(63, 26, 122)
HSLhsl(263, 65%, 29%)
HSVhsv(263, 79%, 48%)
CMYKcmyk(48.4%, 78.7%, 0%, 52.2%)
CIE-LABlab(20.83, 39.57, -47.70)
CIE-LCHlch(20.83, 61.98, 309.68°)
OKLaboklab(33.53% 0.0618 -0.1368)
OKLCHoklch(33.53% 0.15 294.3)
XYZxyz(5.9312, 3.2005, 18.7138)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A7A #557A1A
analogous
#1A257A #3F1A7A #6F1A7A
triadic
#3F1A7A #7A3F1A #1A7A3F
tetradic
#3F1A7A #7A1A25 #557A1A #1A7A6F
square
#3F1A7A #7A1A25 #557A1A #1A7A6F
split-complementary
#3F1A7A #7A6F1A #257A1A
monochromatic
#0D0519 #250F48 #3F1A7A #5925AC #7539D5

Accessibility & contrast

On white

12.80
#3F1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A7A
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A7A#FFFFFF#000000##FFFFFF
##3F1A7A1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#2E3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1a7a;
/* rgb */ color: rgb(63, 26, 122);
/* oklch */ color: oklch(33.5% 0.150 294.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ba1',
    500: '#3f1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a7a;
$custom-light: #7b5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a7a",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 263.125,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33535,
    "c": 0.15006,
    "h": 294.3
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#3F1A7A
secondary
#84AE41
accent
#E840A7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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