#3F1877#3F1877

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

Color values

HEX#3F1877
RGBrgb(63, 24, 119)
HSLhsl(265, 66%, 28%)
HSVhsv(265, 80%, 47%)
CMYKcmyk(47.1%, 79.8%, 0%, 53.3%)
CIE-LABlab(20.21, 39.69, -46.79)
CIE-LCHlch(20.21, 61.36, 310.31°)
OKLaboklab(33.01% 0.0644 -0.1341)
OKLCHoklch(33.01% 0.149 295.7)
XYZxyz(5.7054, 3.0418, 17.7357)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1877 #507718
analogous
#182077 #3F1877 #6F1877
triadic
#3F1877 #773F18 #18773F
tetradic
#3F1877 #771820 #507718 #18776F
square
#3F1877 #771820 #507718 #18776F
split-complementary
#3F1877 #776F18 #207718
monochromatic
#0D0519 #240E44 #3F1877 #5A22AA #7633D6

Accessibility & contrast

On white

13.06
#3F1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1877
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1877#FFFFFF#000000##FFFFFF
##3F18771.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1877;
/* rgb */ color: rgb(63, 24, 119);
/* oklch */ color: oklch(33.0% 0.149 295.7);
Tailwind
colors: {
  custom: {
    50: '#7a5a9f',
    500: '#3f1877',
    950: '#000000',
  },
}
SCSS
$custom: #3f1877;
$custom-light: #7a5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1877",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 264.632,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33014,
    "c": 0.14876,
    "h": 295.7
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#3F1877
secondary
#7FAC3F
accent
#E93EA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3F1877

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

Preview Lab → · Contrast checker → · Palette generator →

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