#3F1166#3F1166

#3F1166 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.137 H 303.5°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#3F1166
RGBrgb(63, 17, 102)
HSLhsl(272, 71%, 23%)
HSVhsv(272, 83%, 40%)
CMYKcmyk(38.2%, 83.3%, 0%, 60%)
CIE-LABlab(17.54, 38.28, -40.12)
CIE-LCHlch(17.54, 55.45, 313.65°)
OKLaboklab(30.66% 0.0757 -0.1144)
OKLCHoklch(30.66% 0.137 303.5)
XYZxyz(4.6481, 2.4170, 12.7894)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1166 #386611
analogous
#151166 #3F1166 #661162
triadic
#3F1166 #663F11 #11663F
tetradic
#3F1166 #661511 #386611 #116266
square
#3F1166 #661511 #386611 #116266
split-complementary
#3F1166 #626611 #116615
monochromatic
#10041A #1F0832 #3F1166 #5F1A9A #8022CF

Accessibility & contrast

On white

14.16
#3F1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1166
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1166#FFFFFF#000000##FFFFFF
##3F11661.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1166;
/* rgb */ color: rgb(63, 17, 102);
/* oklch */ color: oklch(30.7% 0.137 303.5);
Tailwind
colors: {
  custom: {
    50: '#795592',
    500: '#3f1166',
    950: '#000000',
  },
}
SCSS
$custom: #3f1166;
$custom-light: #795592;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1166",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 272.471,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30656,
    "c": 0.13722,
    "h": 303.5
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#3F1166
secondary
#659E35
accent
#EE3A8C
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1166

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

Preview Lab → · Contrast checker → · Palette generator →

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