#3F1A7E#3F1A7E

#3F1A7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.155 H 293.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#3F1A7E
RGBrgb(63, 26, 126)
HSLhsl(262, 66%, 30%)
HSVhsv(262, 79%, 49%)
CMYKcmyk(50%, 79.4%, 0%, 50.6%)
CIE-LABlab(21.21, 40.70, -49.62)
CIE-LCHlch(21.21, 64.17, 309.36°)
OKLaboklab(33.92% 0.0606 -0.1424)
OKLCHoklch(33.92% 0.155 293.1)
XYZxyz(6.1841, 3.3017, 20.0461)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A7E #597E1A
analogous
#1A277E #3F1A7E #711A7E
triadic
#3F1A7E #7E3F1A #1A7E3F
tetradic
#3F1A7E #7E1A27 #597E1A #1A7E71
square
#3F1A7E #7E1A27 #597E1A #1A7E71
split-complementary
#3F1A7E #7E711A #277E1A
monochromatic
#0D0519 #26104B #3F1A7E #5824B1 #753CD7

Accessibility & contrast

On white

12.65
#3F1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1A7E
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A7E#FFFFFF#000000##FFFFFF
##3F1A7E1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#2B364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1a7e;
/* rgb */ color: rgb(63, 26, 126);
/* oklch */ color: oklch(33.9% 0.155 293.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ba4',
    500: '#3f1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a7e;
$custom-light: #7b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a7e",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 262.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33922,
    "c": 0.15474,
    "h": 293.1
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#3F1A7E
secondary
#88B242
accent
#E93FAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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