#3F1B7D#3F1B7D

#3F1B7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.152 H 293.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#3F1B7D
RGBrgb(63, 27, 125)
HSLhsl(262, 64%, 30%)
HSVhsv(262, 78%, 49%)
CMYKcmyk(49.6%, 78.4%, 0%, 51%)
CIE-LABlab(21.29, 39.93, -48.86)
CIE-LCHlch(21.29, 63.10, 309.26°)
OKLaboklab(33.94% 0.06 -0.1402)
OKLCHoklch(33.94% 0.153 293.2)
XYZxyz(6.1425, 3.3211, 19.7155)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B7D #597D1B
analogous
#1B287D #3F1B7D #701B7D
triadic
#3F1B7D #7D3F1B #1B7D3F
tetradic
#3F1B7D #7D1B28 #597D1B #1B7D70
square
#3F1B7D #7D1B28 #597D1B #1B7D70
split-complementary
#3F1B7D #7D701B #287D1B
monochromatic
#0D0519 #26104B #3F1B7D #5826AF #753DD5

Accessibility & contrast

On white

12.62
#3F1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B7D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B7D#FFFFFF#000000##FFFFFF
##3F1B7D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#2C364B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1b7d;
/* rgb */ color: rgb(63, 27, 125);
/* oklch */ color: oklch(33.9% 0.152 293.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ca4',
    500: '#3f1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b7d;
$custom-light: #7b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b7d",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 262.041,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33943,
    "c": 0.1525,
    "h": 293.2
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#3F1B7D
secondary
#88B143
accent
#E740AA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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