#3F1A8E#3F1A8E

#3F1A8E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.173 H 288.7°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#3F1A8E
RGBrgb(63, 26, 142)
HSLhsl(259, 69%, 33%)
HSVhsv(259, 82%, 56%)
CMYKcmyk(55.6%, 81.7%, 0%, 44.3%)
CIE-LABlab(22.82, 45.21, -57.03)
CIE-LCHlch(22.82, 72.77, 308.40°)
OKLaboklab(35.53% 0.0555 -0.1641)
OKLCHoklch(35.53% 0.173 288.7)
XYZxyz(7.3003, 3.7482, 25.9247)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A8E #698E1A
analogous
#1A2F8E #3F1A8E #791A8E
triadic
#3F1A8E #8E3F1A #1A8E3F
tetradic
#3F1A8E #8E1A2F #698E1A #1A8E79
square
#3F1A8E #8E1A2F #698E1A #1A8E79
split-complementary
#3F1A8E #8E791A #2F8E1A
monochromatic
#110727 #28115A #3F1A8E #5623C2 #7645DD

Accessibility & contrast

On white

12.00
#3F1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A8E
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A8E#FFFFFF#000000##FFFFFF
##3F1A8E1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#1E3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1a8e;
/* rgb */ color: rgb(63, 26, 142);
/* oklch */ color: oklch(35.5% 0.173 288.7);
Tailwind
colors: {
  custom: {
    50: '#7e5cb0',
    500: '#3f1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a8e;
$custom-light: #7e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a8e",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 259.138,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35527,
    "c": 0.1732,
    "h": 288.7
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#3F1A8E
secondary
#98BE45
accent
#EC3CB4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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