#3F1F94#3F1F94

#3F1F94 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.175 H 286.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3F1F94
RGBrgb(63, 31, 148)
HSLhsl(256, 65%, 35%)
HSVhsv(256, 79%, 58%)
CMYKcmyk(57.4%, 79.1%, 0%, 42%)
CIE-LABlab(24.24, 44.61, -58.41)
CIE-LCHlch(24.24, 73.49, 307.37°)
OKLaboklab(36.7% 0.0501 -0.1682)
OKLCHoklch(36.7% 0.175 286.6)
XYZxyz(7.8836, 4.1744, 28.4016)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F94 #74941F
analogous
#1F3A94 #3F1F94 #791F94
triadic
#3F1F94 #943F1F #1F943F
tetradic
#3F1F94 #941F3A #74941F #1F9479
square
#3F1F94 #941F3A #74941F #1F9479
split-complementary
#3F1F94 #94791F #3A941F
monochromatic
#140A2F #291461 #3F1F94 #552AC7 #7853DB

Accessibility & contrast

On white

11.44
#3F1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F94
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F94#FFFFFF#000000##FFFFFF
##3F1F941.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#174159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f1f94;
/* rgb */ color: rgb(63, 31, 148);
/* oklch */ color: oklch(36.7% 0.175 286.6);
Tailwind
colors: {
  custom: {
    50: '#7f5fb5',
    500: '#3f1f94',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f94;
$custom-light: #7f5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f94",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 256.41,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36699,
    "c": 0.17546,
    "h": 286.6
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#3F1F94
secondary
#A0BE51
accent
#E83FBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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