#3F1F9E#3F1F9E

#3F1F9E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.187 H 284.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#3F1F9E
RGBrgb(63, 31, 158)
HSLhsl(255, 67%, 37%)
HSVhsv(255, 80%, 62%)
CMYKcmyk(60.1%, 80.4%, 0%, 38%)
CIE-LABlab(25.27, 47.51, -62.84)
CIE-LCHlch(25.27, 78.78, 307.09°)
OKLaboklab(37.73% 0.047 -0.1811)
OKLCHoklch(37.73% 0.187 284.5)
XYZxyz(8.7096, 4.5048, 32.7517)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F9E #7E9E1F
analogous
#1F3F9E #3F1F9E #7F1F9E
triadic
#3F1F9E #9E3F1F #1F9E3F
tetradic
#3F1F9E #9E1F3F #7E9E1F #1F9E7F
square
#3F1F9E #9E1F3F #7E9E1F #1F9E7F
split-complementary
#3F1F9E #9E7F1F #3F9E1F
monochromatic
#160B38 #2B156B #3F1F9E #5329D1 #7B59DE

Accessibility & contrast

On white

11.05
#3F1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3F1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F9E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F9E#FFFFFF#000000##FFFFFF
##3F1F9E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#01455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f1f9e;
/* rgb */ color: rgb(63, 31, 158);
/* oklch */ color: oklch(37.7% 0.187 284.5);
Tailwind
colors: {
  custom: {
    50: '#8060bc',
    500: '#3f1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f9e;
$custom-light: #8060bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f9e",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 255.118,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37729,
    "c": 0.1871,
    "h": 284.5
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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