#3F1794#3F1794

#3F1794 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.182 H 287.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#3F1794
RGBrgb(63, 23, 148)
HSLhsl(259, 73%, 34%)
HSVhsv(259, 84%, 58%)
CMYKcmyk(57.4%, 84.5%, 0%, 42%)
CIE-LABlab(23.02, 48.14, -60.41)
CIE-LCHlch(23.02, 77.25, 308.55°)
OKLaboklab(35.86% 0.0552 -0.1739)
OKLCHoklch(35.86% 0.182 287.6)
XYZxyz(7.7000, 3.8073, 28.3404)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1794 #6C9417
analogous
#172D94 #3F1794 #7D1794
triadic
#3F1794 #943F17 #17943F
tetradic
#3F1794 #94172D #6C9417 #17947D
square
#3F1794 #94172D #6C9417 #17947D
split-complementary
#3F1794 #947D17 #2D9417
monochromatic
#12072A #280F5F #3F1794 #561FC9 #7644E2

Accessibility & contrast

On white

11.92
#3F1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3F1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1794
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1794#FFFFFF#000000##FFFFFF
##3F17941.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#173E57
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1794;
/* rgb */ color: rgb(63, 23, 148);
/* oklch */ color: oklch(35.9% 0.182 287.6);
Tailwind
colors: {
  custom: {
    50: '#7f5bb5',
    500: '#3f1794',
    950: '#000000',
  },
}
SCSS
$custom: #3f1794;
$custom-light: #7f5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1794",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 259.2,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35857,
    "c": 0.18247,
    "h": 287.6
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#3F1794
secondary
#9AC344
accent
#F038B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1794

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

Preview Lab → · Contrast checker → · Palette generator →

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