#3F1778#3F1778

#3F1778 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.151 H 295.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#3F1778
RGBrgb(63, 23, 120)
HSLhsl(265, 68%, 28%)
HSVhsv(265, 81%, 47%)
CMYKcmyk(47.5%, 80.8%, 0%, 52.9%)
CIE-LABlab(20.15, 40.43, -47.54)
CIE-LCHlch(20.15, 62.41, 310.38°)
OKLaboklab(33% 0.065 -0.1363)
OKLCHoklch(33% 0.151 295.5)
XYZxyz(5.7455, 3.0255, 18.0469)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1778 #507817
analogous
#172078 #3F1778 #6F1778
triadic
#3F1778 #783F17 #17783F
tetradic
#3F1778 #781720 #507817 #17786F
square
#3F1778 #781720 #507817 #17786F
split-complementary
#3F1778 #786F17 #207817
monochromatic
#0D051A #240D45 #3F1778 #5A21AB #7632D8

Accessibility & contrast

On white

13.08
#3F1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1778
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1778#FFFFFF#000000##FFFFFF
##3F17781.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2F3247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1778;
/* rgb */ color: rgb(63, 23, 120);
/* oklch */ color: oklch(33.0% 0.151 295.5);
Tailwind
colors: {
  custom: {
    50: '#7b59a0',
    500: '#3f1778',
    950: '#000000',
  },
}
SCSS
$custom: #3f1778;
$custom-light: #7b59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1778",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 264.742,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32998,
    "c": 0.15097,
    "h": 295.5
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#3F1778
secondary
#7FAD3E
accent
#EB3DA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1778

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

Preview Lab → · Contrast checker → · Palette generator →

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