#3F1668#3F1668

#3F1668 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.134 H 301.8°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#3F1668
RGBrgb(63, 22, 104)
HSLhsl(270, 65%, 25%)
HSVhsv(270, 79%, 41%)
CMYKcmyk(39.4%, 78.8%, 0%, 59.2%)
CIE-LABlab(18.50, 36.57, -39.87)
CIE-LCHlch(18.50, 54.10, 312.53°)
OKLaboklab(31.38% 0.0704 -0.1138)
OKLCHoklch(31.38% 0.134 301.8)
XYZxyz(4.8349, 2.6300, 13.3469)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1668 #3F6816
analogous
#161668 #3F1668 #681668
triadic
#3F1668 #683F16 #16683F
tetradic
#3F1668 #681616 #3F6816 #166868
square
#3F1668 #681616 #3F6816 #166868
split-complementary
#3F1668 #686816 #166816
monochromatic
#0F0519 #200B35 #3F1668 #5E219B #7C2BCD

Accessibility & contrast

On white

13.76
#3F1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3F1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1668
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1668#FFFFFF#000000##FFFFFF
##3F16681.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#362B3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1668;
/* rgb */ color: rgb(63, 22, 104);
/* oklch */ color: oklch(31.4% 0.134 301.8);
Tailwind
colors: {
  custom: {
    50: '#795894',
    500: '#3f1668',
    950: '#000000',
  },
}
SCSS
$custom: #3f1668;
$custom-light: #795894;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1668",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 270,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31384,
    "c": 0.13379,
    "h": 301.8
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#3F1668
secondary
#6D9F3B
accent
#E84094
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1668

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

Preview Lab → · Contrast checker → · Palette generator →

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