#3F1F76#3F1F76

#3F1F76 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.139 H 294.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#3F1F76
RGBrgb(63, 31, 118)
HSLhsl(262, 58%, 29%)
HSVhsv(262, 74%, 46%)
CMYKcmyk(46.6%, 73.7%, 0%, 53.7%)
CIE-LABlab(21.37, 35.85, -44.25)
CIE-LCHlch(21.37, 56.95, 309.02°)
OKLaboklab(33.81% 0.058 -0.1267)
OKLCHoklch(33.81% 0.139 294.6)
XYZxyz(5.8090, 3.3446, 17.4755)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F76 #56761F
analogous
#1F2B76 #3F1F76 #6B1F76
triadic
#3F1F76 #763F1F #1F763F
tetradic
#3F1F76 #761F2B #56761F #1F766B
square
#3F1F76 #761F2B #56761F #1F766B
split-complementary
#3F1F76 #766B1F #2B761F
monochromatic
#0D0618 #251246 #3F1F76 #592CA6 #7542CD

Accessibility & contrast

On white

12.58
#3F1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F76
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F76#FFFFFF#000000##FFFFFF
##3F1F761.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#2F3548
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1f76;
/* rgb */ color: rgb(63, 31, 118);
/* oklch */ color: oklch(33.8% 0.139 294.6);
Tailwind
colors: {
  custom: {
    50: '#7a5e9e',
    500: '#3f1f76',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f76;
$custom-light: #7a5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f76",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 262.069,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33807,
    "c": 0.13931,
    "h": 294.6
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#3F1F76
secondary
#85AA47
accent
#E246A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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