#3F1B7E#3F1B7E

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

Color values

HEX#3F1B7E
RGBrgb(63, 27, 126)
HSLhsl(262, 65%, 30%)
HSVhsv(262, 79%, 49%)
CMYKcmyk(50%, 78.6%, 0%, 50.6%)
CIE-LABlab(21.38, 40.22, -49.34)
CIE-LCHlch(21.38, 63.65, 309.18°)
OKLaboklab(34.04% 0.0598 -0.1416)
OKLCHoklch(34.04% 0.154 292.9)
XYZxyz(6.2067, 3.3468, 20.0536)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B7E #5A7E1B
analogous
#1B297E #3F1B7E #701B7E
triadic
#3F1B7E #7E3F1B #1B7E3F
tetradic
#3F1B7E #7E1B29 #5A7E1B #1B7E70
square
#3F1B7E #7E1B29 #5A7E1B #1B7E70
split-complementary
#3F1B7E #7E701B #297E1B
monochromatic
#0D0519 #26104C #3F1B7E #5826B0 #753ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F1B7E#FFFFFF#000000##FFFFFF
##3F1B7E1.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)
#003581
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#2B364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1b7e;
/* rgb */ color: rgb(63, 27, 126);
/* oklch */ color: oklch(34.0% 0.154 292.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ca4',
    500: '#3f1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b7e;
$custom-light: #7b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b7e",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 261.818,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.15367,
    "h": 292.9
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#3F1B7E
secondary
#8AB243
accent
#E840AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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