#3F1881#3F1881

#3F1881 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.160 H 292.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#3F1881
RGBrgb(63, 24, 129)
HSLhsl(262, 69%, 30%)
HSVhsv(262, 81%, 51%)
CMYKcmyk(51.2%, 81.4%, 0%, 49.4%)
CIE-LABlab(21.19, 42.46, -51.56)
CIE-LCHlch(21.19, 66.79, 309.47°)
OKLaboklab(33.99% 0.0613 -0.1481)
OKLCHoklch(33.99% 0.16 292.5)
XYZxyz(6.3379, 3.2948, 21.0666)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1881 #5A8118
analogous
#182581 #3F1881 #741881
triadic
#3F1881 #813F18 #18813F
tetradic
#3F1881 #811825 #5A8118 #188174
square
#3F1881 #811825 #5A8118 #188174
split-complementary
#3F1881 #817418 #258118
monochromatic
#0D051A #260E4D #3F1881 #5822B5 #7539DA

Accessibility & contrast

On white

12.66
#3F1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1881
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1881#FFFFFF#000000##FFFFFF
##3F18811.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#29364D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1881;
/* rgb */ color: rgb(63, 24, 129);
/* oklch */ color: oklch(34.0% 0.160 292.5);
Tailwind
colors: {
  custom: {
    50: '#7c5aa7',
    500: '#3f1881',
    950: '#000000',
  },
}
SCSS
$custom: #3f1881;
$custom-light: #7c5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1881",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 262.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.33994,
    "c": 0.16023,
    "h": 292.5
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#3F1881
secondary
#8AB540
accent
#EB3CAA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1881

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

Preview Lab → · Contrast checker → · Palette generator →

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