#3F1B7C#3F1B7C

#3F1B7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.151 H 293.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#3F1B7C
RGBrgb(63, 27, 124)
HSLhsl(262, 64%, 30%)
HSVhsv(262, 78%, 49%)
CMYKcmyk(49.2%, 78.2%, 0%, 51.4%)
CIE-LABlab(21.19, 39.65, -48.38)
CIE-LCHlch(21.19, 62.55, 309.33°)
OKLaboklab(33.85% 0.0603 -0.1388)
OKLCHoklch(33.85% 0.151 293.5)
XYZxyz(6.0789, 3.2957, 19.3807)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B7C #587C1B
analogous
#1B287C #3F1B7C #701B7C
triadic
#3F1B7C #7C3F1B #1B7C3F
tetradic
#3F1B7C #7C1B28 #587C1B #1B7C70
square
#3F1B7C #7C1B28 #587C1B #1B7C70
split-complementary
#3F1B7C #7C701B #287C1B
monochromatic
#0D0519 #25104A #3F1B7C #5926AE #753DD5

Accessibility & contrast

On white

12.66
#3F1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1B7C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B7C#FFFFFF#000000##FFFFFF
##3F1B7C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#2C354A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f1b7c;
/* rgb */ color: rgb(63, 27, 124);
/* oklch */ color: oklch(33.8% 0.151 293.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ca3',
    500: '#3f1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b7c;
$custom-light: #7b5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b7c",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 262.268,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33847,
    "c": 0.15131,
    "h": 293.5
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#3F1B7C
secondary
#87B043
accent
#E741A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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