#3F1066#3F1066

#3F1066 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.138 H 303.6°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#3F1066
RGBrgb(63, 16, 102)
HSLhsl(273, 73%, 23%)
HSVhsv(273, 84%, 40%)
CMYKcmyk(38.2%, 84.3%, 0%, 60%)
CIE-LABlab(17.40, 38.69, -40.35)
CIE-LCHlch(17.40, 55.90, 313.79°)
OKLaboklab(30.56% 0.0766 -0.1151)
OKLCHoklch(30.56% 0.138 303.6)
XYZxyz(4.6329, 2.3867, 12.7844)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1066 #376610
analogous
#141066 #3F1066 #661062
triadic
#3F1066 #663F10 #10663F
tetradic
#3F1066 #661410 #376610 #106266
square
#3F1066 #661410 #376610 #106266
split-complementary
#3F1066 #626610 #106614
monochromatic
#10041A #1E0831 #3F1066 #60189B #8021D0

Accessibility & contrast

On white

14.21
#3F1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3F1066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1066
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1066#FFFFFF#000000##FFFFFF
##3F10661.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#37273B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f1066;
/* rgb */ color: rgb(63, 16, 102);
/* oklch */ color: oklch(30.6% 0.138 303.6);
Tailwind
colors: {
  custom: {
    50: '#795592',
    500: '#3f1066',
    950: '#000000',
  },
}
SCSS
$custom: #3f1066;
$custom-light: #795592;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1066",
  "rgb": {
    "r": 63,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 272.791,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30558,
    "c": 0.13826,
    "h": 303.6
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#3F1066
secondary
#649E33
accent
#F0388B
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1066

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

Preview Lab → · Contrast checker → · Palette generator →

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