#3F1972#3F1972

#3F1972 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.142 H 297.2°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#3F1972
RGBrgb(63, 25, 114)
HSLhsl(266, 64%, 27%)
HSVhsv(266, 78%, 45%)
CMYKcmyk(44.7%, 78.1%, 0%, 55.3%)
CIE-LABlab(19.91, 37.83, -44.07)
CIE-LCHlch(19.91, 58.08, 310.64°)
OKLaboklab(32.66% 0.0649 -0.1261)
OKLCHoklch(32.66% 0.142 297.2)
XYZxyz(5.4340, 2.9668, 16.2027)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1972 #4C7219
analogous
#191F72 #3F1972 #6C1972
triadic
#3F1972 #723F19 #19723F
tetradic
#3F1972 #72191F #4C7219 #19726C
square
#3F1972 #72191F #4C7219 #19726C
split-complementary
#3F1972 #726C19 #1F7219
monochromatic
#0E0619 #230E40 #3F1972 #5B24A4 #7733D2

Accessibility & contrast

On white

13.18
#3F1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1972
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1972#FFFFFF#000000##FFFFFF
##3F19721.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.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: #3f1972;
/* rgb */ color: rgb(63, 25, 114);
/* oklch */ color: oklch(32.7% 0.142 297.2);
Tailwind
colors: {
  custom: {
    50: '#7a5a9b',
    500: '#3f1972',
    950: '#000000',
  },
}
SCSS
$custom: #3f1972;
$custom-light: #7a5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1972",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 265.618,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32659,
    "c": 0.14182,
    "h": 297.2
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#3F1972
secondary
#7BA740
accent
#E741A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1972

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

Preview Lab → · Contrast checker → · Palette generator →

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