#3F1665#3F1665

#3F1665 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.130 H 303.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#3F1665
RGBrgb(63, 22, 101)
HSLhsl(271, 64%, 24%)
HSVhsv(271, 78%, 40%)
CMYKcmyk(37.6%, 78.2%, 0%, 60.4%)
CIE-LABlab(18.23, 35.77, -38.33)
CIE-LCHlch(18.23, 52.43, 313.02°)
OKLaboklab(31.12% 0.0711 -0.1092)
OKLCHoklch(31.12% 0.13 303.1)
XYZxyz(4.6852, 2.5702, 12.5587)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1665 #3C6516
analogous
#171665 #3F1665 #651664
triadic
#3F1665 #653F16 #16653F
tetradic
#3F1665 #651716 #3C6516 #166465
square
#3F1665 #651716 #3C6516 #166465
split-complementary
#3F1665 #646516 #166517
monochromatic
#100519 #200B33 #3F1665 #5E2197 #7E2CCA

Accessibility & contrast

On white

13.87
#3F1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3F1665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1665
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1665#FFFFFF#000000##FFFFFF
##3F16651.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002C63
Tritanopia (blue-blind)
#372A3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f1665;
/* rgb */ color: rgb(63, 22, 101);
/* oklch */ color: oklch(31.1% 0.130 303.1);
Tailwind
colors: {
  custom: {
    50: '#785892',
    500: '#3f1665',
    950: '#000000',
  },
}
SCSS
$custom: #3f1665;
$custom-light: #785892;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1665",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 271.139,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31116,
    "c": 0.13035,
    "h": 303.1
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#3F1665
secondary
#6A9C3B
accent
#E74191
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1665

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

Preview Lab → · Contrast checker → · Palette generator →

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