#3F1A7D#3F1A7D

#3F1A7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.154 H 293.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3F1A7D
RGBrgb(63, 26, 125)
HSLhsl(262, 66%, 30%)
HSVhsv(262, 79%, 49%)
CMYKcmyk(49.6%, 79.2%, 0%, 51%)
CIE-LABlab(21.12, 40.42, -49.14)
CIE-LCHlch(21.12, 63.62, 309.44°)
OKLaboklab(33.83% 0.0609 -0.141)
OKLCHoklch(33.83% 0.154 293.4)
XYZxyz(6.1199, 3.2760, 19.7079)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A7D #587D1A
analogous
#1A277D #3F1A7D #711A7D
triadic
#3F1A7D #7D3F1A #1A7D3F
tetradic
#3F1A7D #7D1A27 #587D1A #1A7D71
square
#3F1A7D #7D1A27 #587D1A #1A7D71
split-complementary
#3F1A7D #7D711A #277D1A
monochromatic
#0D0519 #250F4A #3F1A7D #5925B0 #753BD6

Accessibility & contrast

On white

12.69
#3F1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A7D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A7D#FFFFFF#000000##FFFFFF
##3F1A7D1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#2C354B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1a7d;
/* rgb */ color: rgb(63, 26, 125);
/* oklch */ color: oklch(33.8% 0.154 293.4);
Tailwind
colors: {
  custom: {
    50: '#7b5ba4',
    500: '#3f1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a7d;
$custom-light: #7b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a7d",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 262.424,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33825,
    "c": 0.15358,
    "h": 293.4
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#3F1A7D
secondary
#87B142
accent
#E93FA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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