#3F1276#3F1276

#3F1276 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.154 H 296.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#3F1276
RGBrgb(63, 18, 118)
HSLhsl(267, 74%, 27%)
HSVhsv(267, 85%, 46%)
CMYKcmyk(46.6%, 84.7%, 0%, 53.7%)
CIE-LABlab(19.21, 42.03, -47.79)
CIE-LCHlch(19.21, 63.64, 311.33°)
OKLaboklab(32.29% 0.0696 -0.1369)
OKLCHoklch(32.29% 0.154 296.9)
XYZxyz(5.5354, 2.7973, 17.3843)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1276 #497612
analogous
#121776 #3F1276 #711276
triadic
#3F1276 #763F12 #12763F
tetradic
#3F1276 #761217 #497612 #127671
square
#3F1276 #761217 #497612 #127671
split-complementary
#3F1276 #767112 #177612
monochromatic
#0E041B #230A41 #3F1276 #5B1AAB #7825DE

Accessibility & contrast

On white

13.47
#3F1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3F1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1276
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1276#FFFFFF#000000##FFFFFF
##3F12761.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#302F45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f1276;
/* rgb */ color: rgb(63, 18, 118);
/* oklch */ color: oklch(32.3% 0.154 296.9);
Tailwind
colors: {
  custom: {
    50: '#7b579e',
    500: '#3f1276',
    950: '#000000',
  },
}
SCSS
$custom: #3f1276;
$custom-light: #7b579e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1276",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 267,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3229,
    "c": 0.15362,
    "h": 296.9
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#3F1276
secondary
#78AD37
accent
#F0389D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1276

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

Preview Lab → · Contrast checker → · Palette generator →

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