#3F1F9F#3F1F9F

#3F1F9F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.188 H 284.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3F1F9F
RGBrgb(63, 31, 159)
HSLhsl(255, 67%, 37%)
HSVhsv(255, 81%, 62%)
CMYKcmyk(60.4%, 80.5%, 0%, 37.6%)
CIE-LABlab(25.38, 47.80, -63.28)
CIE-LCHlch(25.38, 79.30, 307.07°)
OKLaboklab(37.83% 0.0466 -0.1824)
OKLCHoklch(37.83% 0.188 284.3)
XYZxyz(8.7960, 4.5394, 33.2068)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F9F #7F9F1F
analogous
#1F3F9F #3F1F9F #7F1F9F
triadic
#3F1F9F #9F3F1F #1F9F3F
tetradic
#3F1F9F #9F1F3F #7F9F1F #1F9F7F
square
#3F1F9F #9F1F3F #7F9F1F #1F9F7F
split-complementary
#3F1F9F #9F7F1F #3F9F1F
monochromatic
#160B39 #2B156C #3F1F9F #5329D2 #7B5ADF

Accessibility & contrast

On white

11.01
#3F1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F9F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F9F#FFFFFF#000000##FFFFFF
##3F1F9F1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f1f9f;
/* rgb */ color: rgb(63, 31, 159);
/* oklch */ color: oklch(37.8% 0.188 284.3);
Tailwind
colors: {
  custom: {
    50: '#8160bd',
    500: '#3f1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f9f;
$custom-light: #8160bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f9f",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 255,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37834,
    "c": 0.18826,
    "h": 284.3
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#3F1F9F
secondary
#A8C357
accent
#EA3EBF
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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