#3F1B77#3F1B77

#3F1B77 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.145 H 295.1°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#3F1B77
RGBrgb(63, 27, 119)
HSLhsl(263, 63%, 29%)
HSVhsv(263, 77%, 47%)
CMYKcmyk(47.1%, 77.3%, 0%, 53.3%)
CIE-LABlab(20.72, 38.23, -45.96)
CIE-LCHlch(20.72, 59.78, 309.76°)
OKLaboklab(33.37% 0.0617 -0.1317)
OKLCHoklch(33.37% 0.145 295.1)
XYZxyz(5.7707, 3.1724, 17.7575)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B77 #53771B
analogous
#1B2577 #3F1B77 #6D1B77
triadic
#3F1B77 #773F1B #1B773F
tetradic
#3F1B77 #771B25 #53771B #1B776D
square
#3F1B77 #771B25 #53771B #1B776D
split-complementary
#3F1B77 #776D1B #25771B
monochromatic
#0D0619 #251045 #3F1B77 #5926A9 #763AD2

Accessibility & contrast

On white

12.85
#3F1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F1B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B77
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B77#FFFFFF#000000##FFFFFF
##3F1B771.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#2F3347
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f1b77;
/* rgb */ color: rgb(63, 27, 119);
/* oklch */ color: oklch(33.4% 0.145 295.1);
Tailwind
colors: {
  custom: {
    50: '#7a5b9f',
    500: '#3f1b77',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b77;
$custom-light: #7a5b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b77",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 263.478,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33373,
    "c": 0.14539,
    "h": 295.1
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#3F1B77
secondary
#82AB42
accent
#E642A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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