#3F1774#3F1774

#3F1774 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.146 H 296.9°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#3F1774
RGBrgb(63, 23, 116)
HSLhsl(266, 67%, 27%)
HSVhsv(266, 80%, 45%)
CMYKcmyk(45.7%, 80.2%, 0%, 54.5%)
CIE-LABlab(19.76, 39.34, -45.60)
CIE-LCHlch(19.76, 60.22, 310.78°)
OKLaboklab(32.61% 0.0662 -0.1306)
OKLCHoklch(32.61% 0.146 296.9)
XYZxyz(5.5078, 2.9304, 16.7950)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1774 #4C7417
analogous
#171E74 #3F1774 #6D1774
triadic
#3F1774 #743F17 #17743F
tetradic
#3F1774 #74171E #4C7417 #17746D
square
#3F1774 #74171E #4C7417 #17746D
split-complementary
#3F1774 #746D17 #1E7417
monochromatic
#0E051A #230D41 #3F1774 #5B21A7 #7730D6

Accessibility & contrast

On white

13.24
#3F1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1774
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1774#FFFFFF#000000##FFFFFF
##3F17741.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#313045
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1774;
/* rgb */ color: rgb(63, 23, 116);
/* oklch */ color: oklch(32.6% 0.146 296.9);
Tailwind
colors: {
  custom: {
    50: '#7a599d',
    500: '#3f1774',
    950: '#000000',
  },
}
SCSS
$custom: #3f1774;
$custom-light: #7a599d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1774",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 265.806,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32613,
    "c": 0.14639,
    "h": 296.9
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#3F1774
secondary
#7BA93D
accent
#EA3EA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1774

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

Preview Lab → · Contrast checker → · Palette generator →

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