#3F1872#3F1872

#3F1872 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.143 H 297.4°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#3F1872
RGBrgb(63, 24, 114)
HSLhsl(266, 65%, 27%)
HSVhsv(266, 79%, 45%)
CMYKcmyk(44.7%, 78.9%, 0%, 55.3%)
CIE-LABlab(19.74, 38.32, -44.35)
CIE-LCHlch(19.74, 58.61, 310.83°)
OKLaboklab(32.54% 0.0658 -0.1269)
OKLCHoklch(32.54% 0.143 297.4)
XYZxyz(5.4130, 2.9248, 16.1957)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1872 #4B7218
analogous
#181E72 #3F1872 #6C1872
triadic
#3F1872 #723F18 #18723F
tetradic
#3F1872 #72181E #4B7218 #18726C
square
#3F1872 #72181E #4B7218 #18726C
split-complementary
#3F1872 #726C18 #1E7218
monochromatic
#0E0519 #230D3F #3F1872 #5B23A5 #7731D4

Accessibility & contrast

On white

13.25
#3F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3F1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1872
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1872#FFFFFF#000000##FFFFFF
##3F18721.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#323044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1872;
/* rgb */ color: rgb(63, 24, 114);
/* oklch */ color: oklch(32.5% 0.143 297.4);
Tailwind
colors: {
  custom: {
    50: '#7a599b',
    500: '#3f1872',
    950: '#000000',
  },
}
SCSS
$custom: #3f1872;
$custom-light: #7a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1872",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 266,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3254,
    "c": 0.14297,
    "h": 297.4
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#3F1872
secondary
#7AA73E
accent
#E8409F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1872

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

Preview Lab → · Contrast checker → · Palette generator →

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