#3F1B74#3F1B74

#3F1B74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.142 H 296.1°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#3F1B74
RGBrgb(63, 27, 116)
HSLhsl(264, 62%, 28%)
HSVhsv(264, 77%, 45%)
CMYKcmyk(45.7%, 76.7%, 0%, 54.5%)
CIE-LABlab(20.45, 37.39, -44.48)
CIE-LCHlch(20.45, 58.11, 310.05°)
OKLaboklab(33.09% 0.0625 -0.1273)
OKLCHoklch(33.09% 0.142 296.1)
XYZxyz(5.5934, 3.1015, 16.8236)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B74 #50741B
analogous
#1B2374 #3F1B74 #6B1B74
triadic
#3F1B74 #743F1B #1B743F
tetradic
#3F1B74 #741B23 #50741B #1B746B
square
#3F1B74 #741B23 #50741B #1B746B
split-complementary
#3F1B74 #746B1B #23741B
monochromatic
#0D0619 #240F42 #3F1B74 #5A27A6 #7639D1

Accessibility & contrast

On white

12.96
#3F1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3F1B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B74
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B74#FFFFFF#000000##FFFFFF
##3F1B741.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#313246
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1b74;
/* rgb */ color: rgb(63, 27, 116);
/* oklch */ color: oklch(33.1% 0.142 296.1);
Tailwind
colors: {
  custom: {
    50: '#7a5b9d',
    500: '#3f1b74',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b74;
$custom-light: #7a5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b74",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 264.27,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33093,
    "c": 0.14182,
    "h": 296.1
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#3F1B74
secondary
#7FA942
accent
#E542A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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