#3F1D74#3F1D74

#3F1D74 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.139 H 295.7°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#3F1D74
RGBrgb(63, 29, 116)
HSLhsl(263, 60%, 28%)
HSVhsv(263, 75%, 45%)
CMYKcmyk(45.7%, 75%, 0%, 54.5%)
CIE-LABlab(20.81, 36.35, -43.88)
CIE-LCHlch(20.81, 56.98, 309.64°)
OKLaboklab(33.35% 0.0605 -0.1256)
OKLCHoklch(33.35% 0.139 295.7)
XYZxyz(5.6408, 3.1963, 16.8394)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1D74 #52741D
analogous
#1D2674 #3F1D74 #6A1D74
triadic
#3F1D74 #743F1D #1D743F
tetradic
#3F1D74 #741D26 #52741D #1D746A
square
#3F1D74 #741D26 #52741D #1D746A
split-complementary
#3F1D74 #746A1D #26741D
monochromatic
#0D0618 #241143 #3F1D74 #5A29A5 #763DCE

Accessibility & contrast

On white

12.81
#3F1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1D74
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1D74#FFFFFF#000000##FFFFFF
##3F1D741.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#313346
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1d74;
/* rgb */ color: rgb(63, 29, 116);
/* oklch */ color: oklch(33.4% 0.139 295.7);
Tailwind
colors: {
  custom: {
    50: '#7a5c9d',
    500: '#3f1d74',
    950: '#000000',
  },
}
SCSS
$custom: #3f1d74;
$custom-light: #7a5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1d74",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 263.448,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33353,
    "c": 0.13937,
    "h": 295.7
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#3F1D74
secondary
#81A845
accent
#E345A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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